Lines Matching refs:follow_symlinks

226 def copyfile(src, dst, *, follow_symlinks=True):
229 If follow_symlinks is not set and src is a symbolic link, a new
253 if not follow_symlinks and _islink(src):
290 def copymode(src, dst, *, follow_symlinks=True):
293 If follow_symlinks is not set, symlinks aren't followed if and only
300 if not follow_symlinks and _islink(src) and os.path.islink(dst):
312 def _copyxattr(src, dst, *, follow_symlinks=True):
317 If `follow_symlinks` is false, symlinks won't be followed.
322 names = os.listxattr(src, follow_symlinks=follow_symlinks)
329 value = os.getxattr(src, name, follow_symlinks=follow_symlinks)
330 os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
339 def copystat(src, dst, *, follow_symlinks=True):
348 If the optional flag `follow_symlinks` is not set, symlinks aren't
353 def _nop(*args, ns=None, follow_symlinks=None):
357 follow = follow_symlinks or not (_islink(src) and os.path.islink(dst))
364 # *and* it supports follow_symlinks
372 st = src.stat(follow_symlinks=follow)
374 st = lookup("stat")(src, follow_symlinks=follow)
377 follow_symlinks=follow)
380 _copyxattr(src, dst, follow_symlinks=follow)
382 lookup("chmod")(dst, mode, follow_symlinks=follow)
385 # * follow_symlinks=False,
397 lookup("chflags")(dst, st.st_flags, follow_symlinks=follow)
405 def copy(src, dst, *, follow_symlinks=True):
410 If follow_symlinks is false, symlinks won't be followed. This
419 copyfile(src, dst, follow_symlinks=follow_symlinks)
420 copymode(src, dst, follow_symlinks=follow_symlinks)
423 def copy2(src, dst, *, follow_symlinks=True):
431 If follow_symlinks is false, symlinks won't be followed. This
436 copyfile(src, dst, follow_symlinks=follow_symlinks)
437 copystat(src, dst, follow_symlinks=follow_symlinks)
474 lstat = srcentry.stat(follow_symlinks=False)
484 copystat(srcobj, dstname, follow_symlinks=not symlinks)
572 st = entry.stat(follow_symlinks=False)
590 return entry.is_dir(follow_symlinks=False)
640 is_dir = entry.is_dir(follow_symlinks=False)
646 orig_st = entry.stat(follow_symlinks=False)