Home
last modified time | relevance | path

Searched refs:follow_symlinks (Results 1 – 22 of 22) sorted by relevance

/third_party/python/Lib/
Dshutil.py224 def copyfile(src, dst, *, follow_symlinks=True): argument
251 if not follow_symlinks and _islink(src):
288 def copymode(src, dst, *, follow_symlinks=True): argument
298 if not follow_symlinks and _islink(src) and os.path.islink(dst):
310 def _copyxattr(src, dst, *, follow_symlinks=True): argument
320 names = os.listxattr(src, follow_symlinks=follow_symlinks)
327 value = os.getxattr(src, name, follow_symlinks=follow_symlinks)
328 os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
337 def copystat(src, dst, *, follow_symlinks=True): argument
351 def _nop(*args, ns=None, follow_symlinks=None): argument
[all …]
Dos.py430 def fwalk(top=".", topdown=True, onerror=None, *, follow_symlinks=False, dir_fd=None): argument
463 sys.audit("os.fwalk", top, topdown, onerror, follow_symlinks, dir_fd)
468 if not follow_symlinks:
469 orig_st = stat(top, follow_symlinks=False, dir_fd=dir_fd)
472 if (follow_symlinks or (st.S_ISDIR(orig_st.st_mode) and
475 topdown, onerror, follow_symlinks)
479 def _fwalk(topfd, toppath, isbytes, topdown, onerror, follow_symlinks): argument
487 entries = None if topdown or follow_symlinks else []
512 if not follow_symlinks:
514 orig_st = stat(name, dir_fd=topfd, follow_symlinks=False)
[all …]
Dpathlib.py1090 def stat(self, *, follow_symlinks=True): argument
1095 return self._accessor.stat(self, follow_symlinks=follow_symlinks)
1185 def chmod(self, mode, *, follow_symlinks=True): argument
1189 self._accessor.chmod(self, mode, follow_symlinks=follow_symlinks)
1196 self.chmod(mode, follow_symlinks=False)
1220 return self.stat(follow_symlinks=False)
Dtempfile.py275 func(path, *args, follow_symlinks=False)
/third_party/python/Modules/clinic/
Dposixmodule.c.h34 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks);
46 int follow_symlinks = 1; in os_stat() local
66 follow_symlinks = PyObject_IsTrue(args[2]); in os_stat()
67 if (follow_symlinks < 0) { in os_stat()
71 return_value = os_stat_impl(module, &path, dir_fd, follow_symlinks); in os_stat()
166 int effective_ids, int follow_symlinks);
180 int follow_symlinks = 1; in os_access() local
214 follow_symlinks = PyObject_IsTrue(args[4]); in os_access()
215 if (follow_symlinks < 0) { in os_access()
219 _return_value = os_access_impl(module, &path, mode, dir_fd, effective_ids, follow_symlinks); in os_access()
[all …]
/third_party/python/Modules/
Dposixmodule.c1405 follow_symlinks_specified(const char *function_name, int follow_symlinks) in follow_symlinks_specified() argument
1407 if (follow_symlinks) in follow_symlinks_specified()
1444 int follow_symlinks) in fd_and_follow_symlinks_invalid() argument
1446 if ((fd > 0) && (!follow_symlinks)) { in fd_and_follow_symlinks_invalid()
1457 int follow_symlinks) in dir_fd_and_follow_symlinks_invalid() argument
1459 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { in dir_fd_and_follow_symlinks_invalid()
2499 int dir_fd, int follow_symlinks) in posix_do_stat() argument
2509 if (follow_symlinks_specified(function_name, follow_symlinks)) in posix_do_stat()
2515 fd_and_follow_symlinks_invalid("stat", path->fd, follow_symlinks)) in posix_do_stat()
2522 else if (follow_symlinks) in posix_do_stat()
[all …]
/third_party/python/Doc/library/
Dshutil.rst51 .. function:: copyfile(src, dst, *, follow_symlinks=True)
66 If *follow_symlinks* is false and *src* is a symbolic link,
74 Added *follow_symlinks* argument.
94 .. function:: copymode(src, dst, *, follow_symlinks=True)
99 If *follow_symlinks* is false, and both *src* and *dst* are symbolic links,
109 Added *follow_symlinks* argument.
111 .. function:: copystat(src, dst, *, follow_symlinks=True)
119 If *follow_symlinks* is false, and *src* and *dst* both
156 Added *follow_symlinks* argument and support for Linux extended attributes.
158 .. function:: copy(src, dst, *, follow_symlinks=True)
[all …]
Dos.rst1649 If the function also supports *dir_fd* or *follow_symlinks* arguments, it's
1667 * **not following symlinks:** If *follow_symlinks* is
1673 You can check whether or not *follow_symlinks* is supported for a particular
1679 .. function:: access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)
1691 descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`.
1729 Added the *dir_fd*, *effective_ids*, and *follow_symlinks* parameters.
1767 .. function:: chflags(path, flags, *, follow_symlinks=True)
1785 This function can support :ref:`not following symlinks <follow_symlinks>`.
1792 The *follow_symlinks* argument.
1798 .. function:: chmod(path, mode, *, dir_fd=None, follow_symlinks=True)
[all …]
Dpathlib.rst719 .. method:: Path.stat(*, follow_symlinks=True)
725 ``follow_symlinks=False``, or use :meth:`~Path.lstat`.
736 The *follow_symlinks* parameter was added.
738 .. method:: Path.chmod(mode, *, follow_symlinks=True)
744 argument ``follow_symlinks=False``, or use :meth:`~Path.lchmod`.
756 The *follow_symlinks* parameter was added.
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DFileSystem.h1286 bool follow_symlinks = true)
1287 : FollowSymlinks(follow_symlinks) { in FollowSymlinks() argument
1295 bool follow_symlinks = true)
1296 : FollowSymlinks(follow_symlinks) { in FollowSymlinks() argument
1349 bool follow_symlinks = true)
1351 Follow(follow_symlinks) { in State()
/third_party/python/Lib/test/
Dtest_shutil.py844 shutil.copymode(src_link, dst_link, follow_symlinks=False)
850 shutil.copymode(src_link, dst, follow_symlinks=False)
854 shutil.copymode(src, dst_link, follow_symlinks=False)
869 shutil.copymode(src_link, dst_link, follow_symlinks=False) # silent fail
895 shutil.copystat(src_link, dst_link, follow_symlinks=True)
898 shutil.copystat(src_link, dst_link, follow_symlinks=False)
910 shutil.copystat(src_link, dst, follow_symlinks=False)
928 def _chflags_raiser(path, flags, *, follow_symlinks=True): argument
981 def _raise_on_src(fname, *, follow_symlinks=True): argument
984 return orig_listxattr(fname, follow_symlinks=follow_symlinks)
[all …]
Dtest_posix.py464 posix.utime(os_helper.TESTFN, None, follow_symlinks=False)
466 (None, None), follow_symlinks=False)
468 (now, None), follow_symlinks=False)
470 (None, now), follow_symlinks=False)
472 follow_symlinks=False)
473 posix.utime(os_helper.TESTFN, (now, now), follow_symlinks=False)
474 posix.utime(os_helper.TESTFN, follow_symlinks=False)
953 follow_symlinks=False)
966 return posix.chflags(path, flags, follow_symlinks=False)
1168 posix.utime(os_helper.TESTFN, follow_symlinks=False,
[all …]
Dtest_os.py833 os.utime(filename, ns=ns, follow_symlinks=False)
941 os.utime(self.fname, (5, 5), follow_symlinks=False)
1408 walk_it = self.walk(self.walk_path, follow_symlinks=True)
1477 for topdown, follow_symlinks in itertools.product((True, False), repeat=2):
1478 walk_kwargs.update(topdown=topdown, followlinks=follow_symlinks)
1479 fwalk_kwargs.update(topdown=topdown, follow_symlinks=follow_symlinks)
1505 for topdown, follow_symlinks in itertools.product((True, False), repeat=2):
1507 for root, dirs, files, rootfd in self.fwalk(*args, follow_symlinks=follow_symlinks):
3587 os.listxattr, follow_symlinks=False)
4135 os.stat(entry.path, follow_symlinks=False).st_ino)
[all …]
Dtest_pathlib.py1865 p.chmod(new_mode, follow_symlinks=True)
1869 p.chmod(new_mode, follow_symlinks=True)
1887 self.assertNotEqual(st, p.stat(follow_symlinks=False))
1892 self.assertEqual(st, p.stat(follow_symlinks=False))
Dtest_tempfile.py1501 os.chmod(symlink, mode, follow_symlinks=False)
1551 os.chflags(symlink, flags, follow_symlinks=False)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/
DPath.inc847 bool follow_symlinks) {
856 it.CurrentEntry = directory_entry(path_null.str(), follow_symlinks);
/third_party/python/Misc/NEWS.d/
D3.7.0a4.rst538 ``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
D3.6.5rc1.rst509 ``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
D3.10.0b1.rst1303 *follow_symlinks* keyword-only argument for consistency with corresponding
/third_party/python/Doc/whatsnew/
D3.3.rst1603 directory descriptors <dir_fd>`) and/or *follow_symlinks* (:ref:`not
1604 following symlinks <follow_symlinks>`):
D3.10.rst1254 *follow_symlinks* keyword-only argument for consistency with corresponding
/third_party/python/Misc/
DHISTORY6796 - Issue #15202: Consistently use the name "follow_symlinks" for new parameters
7242 Many functions now support "dir_fd" and "follow_symlinks" parameters;