Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/
Dshutil.py96 def copyfile(src, dst, *, follow_symlinks=True): argument
117 if not follow_symlinks and os.path.islink(src):
125 def copymode(src, dst, *, follow_symlinks=True): argument
133 if not follow_symlinks and os.path.islink(src) and os.path.islink(dst):
147 def _copyxattr(src, dst, *, follow_symlinks=True): argument
157 names = os.listxattr(src, follow_symlinks=follow_symlinks)
164 value = os.getxattr(src, name, follow_symlinks=follow_symlinks)
165 os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
173 def copystat(src, dst, *, follow_symlinks=True): argument
184 def _nop(*args, ns=None, follow_symlinks=None): argument
[all …]
Dos.py422 def fwalk(top=".", topdown=True, onerror=None, *, follow_symlinks=False, dir_fd=None): argument
459 if not follow_symlinks:
460 orig_st = stat(top, follow_symlinks=False, dir_fd=dir_fd)
463 if (follow_symlinks or (st.S_ISDIR(orig_st.st_mode) and
466 topdown, onerror, follow_symlinks)
470 def _fwalk(topfd, toppath, isbytes, topdown, onerror, follow_symlinks): argument
478 entries = None if topdown or follow_symlinks else []
503 if not follow_symlinks:
505 orig_st = stat(name, dir_fd=topfd, follow_symlinks=False)
509 orig_st = entry.stat(follow_symlinks=False)
[all …]
/external/python/cpython3/Modules/clinic/
Dposixmodule.c.h34 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks);
44 int follow_symlinks = 1; in os_stat() local
47 path_converter, &path, FSTATAT_DIR_FD_CONVERTER, &dir_fd, &follow_symlinks)) { in os_stat()
50 return_value = os_stat_impl(module, &path, dir_fd, follow_symlinks); in os_stat()
133 int effective_ids, int follow_symlinks);
145 int follow_symlinks = 1; in os_access() local
149 …_converter, &path, &mode, FACCESSAT_DIR_FD_CONVERTER, &dir_fd, &effective_ids, &follow_symlinks)) { in os_access()
152 _return_value = os_access_impl(module, &path, mode, dir_fd, effective_ids, follow_symlinks); in os_access()
331 int follow_symlinks);
342 int follow_symlinks = 1; in os_chmod() local
[all …]
/external/python/cpython3/Modules/
Dposixmodule.c1185 follow_symlinks_specified(const char *function_name, int follow_symlinks) in follow_symlinks_specified() argument
1187 if (follow_symlinks) in follow_symlinks_specified()
1224 int follow_symlinks) in fd_and_follow_symlinks_invalid() argument
1226 if ((fd > 0) && (!follow_symlinks)) { in fd_and_follow_symlinks_invalid()
1237 int follow_symlinks) in dir_fd_and_follow_symlinks_invalid() argument
1239 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { in dir_fd_and_follow_symlinks_invalid()
2110 int dir_fd, int follow_symlinks) in posix_do_stat() argument
2116 if (follow_symlinks_specified(function_name, follow_symlinks)) in posix_do_stat()
2122 fd_and_follow_symlinks_invalid("stat", path->fd, follow_symlinks)) in posix_do_stat()
2129 else if (follow_symlinks) in posix_do_stat()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DFileSystem.h1104 explicit directory_entry(const Twine &path, bool follow_symlinks = true,
1106 : Path(path.str()), FollowSymlinks(follow_symlinks), Status(st) {}
1158 bool follow_symlinks = true)
1159 : FollowSymlinks(follow_symlinks) { in FollowSymlinks() argument
1168 bool follow_symlinks = true)
1169 : FollowSymlinks(follow_symlinks) { in FollowSymlinks() argument
1244 bool follow_symlinks = true)
1246 Follow(follow_symlinks) { in State()
/external/python/cpython3/Doc/library/
Dshutil.rst51 .. function:: copyfile(src, dst, *, follow_symlinks=True)
64 If *follow_symlinks* is false and *src* is a symbolic link,
70 Added *follow_symlinks* argument.
86 .. function:: copymode(src, dst, *, follow_symlinks=True)
90 If *follow_symlinks* is false, and both *src* and *dst* are symbolic links,
98 Added *follow_symlinks* argument.
100 .. function:: copystat(src, dst, *, follow_symlinks=True)
107 If *follow_symlinks* is false, and *src* and *dst* both
142 Added *follow_symlinks* argument and support for Linux extended attributes.
144 .. function:: copy(src, dst, *, follow_symlinks=True)
[all …]
Dos.rst1465 If the function also supports *dir_fd* or *follow_symlinks* arguments, it is
1482 * **not following symlinks:** If *follow_symlinks* is
1488 You can check whether or not *follow_symlinks* is supported on your platform
1494 .. function:: access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)
1506 descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`.
1544 Added the *dir_fd*, *effective_ids*, and *follow_symlinks* parameters.
1577 .. function:: chflags(path, flags, *, follow_symlinks=True)
1595 This function can support :ref:`not following symlinks <follow_symlinks>`.
1600 The *follow_symlinks* argument.
1606 .. function:: chmod(path, mode, *, dir_fd=None, follow_symlinks=True)
[all …]
/external/python/cpython3/Lib/test/
Dtest_shutil.py321 shutil.copymode(src_link, dst_link, follow_symlinks=False)
327 shutil.copymode(src_link, dst, follow_symlinks=False)
331 shutil.copymode(src, dst_link, follow_symlinks=False)
346 shutil.copymode(src_link, dst_link, follow_symlinks=False) # silent fail
370 shutil.copystat(src_link, dst_link, follow_symlinks=True)
373 shutil.copystat(src_link, dst_link, follow_symlinks=False)
385 shutil.copystat(src_link, dst, follow_symlinks=False)
403 def _chflags_raiser(path, flags, *, follow_symlinks=True): argument
454 def _raise_on_src(fname, *, follow_symlinks=True): argument
457 return orig_listxattr(fname, follow_symlinks=follow_symlinks)
[all …]
Dtest_os.py544 os.utime(filename, ns=ns, follow_symlinks=False)
652 os.utime(self.fname, (5, 5), follow_symlinks=False)
1004 walk_it = self.walk(self.walk_path, follow_symlinks=True)
1052 for topdown, follow_symlinks in itertools.product((True, False), repeat=2):
1053 walk_kwargs.update(topdown=topdown, followlinks=follow_symlinks)
1054 fwalk_kwargs.update(topdown=topdown, follow_symlinks=follow_symlinks)
1080 for topdown, follow_symlinks in itertools.product((True, False), repeat=2):
1082 for root, dirs, files, rootfd in self.fwalk(*args, follow_symlinks=follow_symlinks):
3020 os.listxattr, follow_symlinks=False)
3396 os.stat(entry.path, follow_symlinks=False).st_ino)
[all …]
Dtest_posix.py449 posix.utime(support.TESTFN, None, follow_symlinks=False)
450 … self.assertRaises(TypeError, posix.utime, support.TESTFN, (None, None), follow_symlinks=False)
451 … self.assertRaises(TypeError, posix.utime, support.TESTFN, (now, None), follow_symlinks=False)
452 … self.assertRaises(TypeError, posix.utime, support.TESTFN, (None, now), follow_symlinks=False)
453 posix.utime(support.TESTFN, (int(now), int(now)), follow_symlinks=False)
454 posix.utime(support.TESTFN, (now, now), follow_symlinks=False)
455 posix.utime(support.TESTFN, follow_symlinks=False)
925 self._test_chflags_regular_file(posix.chflags, support.TESTFN, follow_symlinks=False)
938 return posix.chflags(path, flags, follow_symlinks=False)
1134 posix.utime(support.TESTFN, follow_symlinks=False, dir_fd=f)
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Unix/
DPath.inc673 bool follow_symlinks) {
682 it.CurrentEntry = directory_entry(path_null.str(), follow_symlinks);
/external/python/cpython3/Misc/NEWS.d/
D3.7.0a4.rst539 ``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
D3.6.5rc1.rst509 ``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Windows/
DPath.inc905 bool follow_symlinks) {
952 it.CurrentEntry = directory_entry(directory_entry_path, follow_symlinks,
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1603 directory descriptors <dir_fd>`) and/or *follow_symlinks* (:ref:`not
1604 following symlinks <follow_symlinks>`):
/external/python/cpython3/Misc/
DHISTORY6796 - Issue #15202: Consistently use the name "follow_symlinks" for new parameters
7242 Many functions now support "dir_fd" and "follow_symlinks" parameters;