Lines Matching refs:path
95 "directories containing it.").format(self.path)
120 The "root" parameter is a path to the directory to manage.
141 """Find the path to the file with name hashval.
146 will ensure that a file exists at the returned path."""
153 cur_full_path = os.path.join(self.root, cur_path)
159 if not check_existence or os.path.exists(cur_full_path):
170 return a path or an open file handle."""
181 p_sdir = os.path.dirname(cur_full_path)
192 p_ddir = os.path.dirname(
194 if os.path.isdir(p_ddir):
226 # exist in the parent path for the source, so
233 if not os.path.exists(cur_full_path):
242 "hashval". Returns the path to the inserted file."""
268 p_dir = os.path.dirname(dest_full_path)
270 not os.path.isdir(p_dir):
293 not os.path.exists(src_path):
294 if os.path.exists(dest_full_path):
316 os.removedirs(os.path.dirname(cur_full_path))
339 cur_full_path = os.path.join(self.root, cur_path)
342 os.removedirs(os.path.dirname(cur_full_path))
359 fp = os.path.join(dirpath, fn)
360 fp = fp[len(self.root):].lstrip(os.path.sep)