Lines Matching refs:exists
283 if not os.path.exists(dst):
359 # use the real function if it exists
363 # use the real function only if it exists
487 if not os.path.exists(linkto) and ignore_dangling_symlinks:
552 If dirs_exist_ok is false (the default) and `dst` already exists, a
792 If the destination already exists but is not a directory, it may be
822 if os.path.exists(real_dst):
823 raise Error("Destination path '%s' already exists" % real_dst)
933 if archive_dir and not os.path.exists(archive_dir):
981 if archive_dir and not os.path.exists(archive_dir):
1199 """Ensure that the parent directory of `path` exists"""
1444 return (os.path.exists(fn) and os.access(fn, mode)