parameters: (self, path)
docstring: Like add_file, but uses a Path object instead of callables.
docstring_summary: Like add_file, but uses a Path object instead of callables.
docstring_tokens: Like add_file but uses a Path object instead of callables .
function: def add_file_from_path(self, path):
          """
          Like add_file, but uses a Path object instead of callables.
          """
          if path.writable():
              open_w = path.open_w
          else:
              open_w = None
  
          self.add_file(path.open_r, open_w, path.filesize, path.mtime)
function_tokens: def add_file_from_path ( self , path ) : if path . writable ( ) : open_w = path . open_w else : open_w = None self . add_file ( path . open_r , open_w , path . filesize , path . mtime )