Lines Matching refs:follow_symlinks
234 def copyfile(src, dst, *, follow_symlinks=True): argument
261 if not follow_symlinks and _islink(src):
289 def copymode(src, dst, *, follow_symlinks=True): argument
299 if not follow_symlinks and _islink(src) and os.path.islink(dst):
311 def _copyxattr(src, dst, *, follow_symlinks=True): argument
321 names = os.listxattr(src, follow_symlinks=follow_symlinks)
328 value = os.getxattr(src, name, follow_symlinks=follow_symlinks)
329 os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
338 def copystat(src, dst, *, follow_symlinks=True): argument
352 def _nop(*args, ns=None, follow_symlinks=None): argument
356 follow = follow_symlinks or not (_islink(src) and os.path.islink(dst))
371 st = src.stat(follow_symlinks=follow)
373 st = lookup("stat")(src, follow_symlinks=follow)
376 follow_symlinks=follow)
379 _copyxattr(src, dst, follow_symlinks=follow)
381 lookup("chmod")(dst, mode, follow_symlinks=follow)
396 lookup("chflags")(dst, st.st_flags, follow_symlinks=follow)
404 def copy(src, dst, *, follow_symlinks=True): argument
418 copyfile(src, dst, follow_symlinks=follow_symlinks)
419 copymode(src, dst, follow_symlinks=follow_symlinks)
422 def copy2(src, dst, *, follow_symlinks=True): argument
435 copyfile(src, dst, follow_symlinks=follow_symlinks)
436 copystat(src, dst, follow_symlinks=follow_symlinks)
473 lstat = srcentry.stat(follow_symlinks=False)
483 copystat(srcobj, dstname, follow_symlinks=not symlinks)
568 st = entry.stat(follow_symlinks=False)
586 return entry.is_dir(follow_symlinks=False)
636 is_dir = entry.is_dir(follow_symlinks=False)
642 orig_st = entry.stat(follow_symlinks=False)