/external/python/cpython3/Lib/ |
D | shutil.py | 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 [all …]
|
D | os.py | 430 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 …]
|
/external/python/pyfakefs/pyfakefs/ |
D | fake_scandir.py | 54 self.stat(follow_symlinks=False) 57 def is_dir(self, follow_symlinks=True): argument 69 return self._isdir and (follow_symlinks or not self._islink) 71 def is_file(self, follow_symlinks=True): argument 83 return not self._isdir and (follow_symlinks or not self._islink) 89 def stat(self, follow_symlinks=True): argument 96 if follow_symlinks:
|
D | fake_filesystem.py | 1119 def stat(self, entry_path, follow_symlinks=True): argument 1135 entry_path, follow_symlinks, 1144 entry_path, file_object, follow_symlinks) 1150 follow_symlinks=True, argument 1162 if not follow_symlinks or self.is_windows_fs or self.is_macos: 1175 def chmod(self, path, mode, follow_symlinks=True): argument 1184 file_object = self.resolve(path, follow_symlinks, allow_fd=True) 1195 def utime(self, path, times=None, *, ns=None, follow_symlinks=True): argument 1217 file_object = self.resolve(path, follow_symlinks, allow_fd=True) 1968 def resolve(self, file_path, follow_symlinks=True, allow_fd=False, argument [all …]
|
D | fake_pathlib.py | 99 lambda fs, path: FakeFilesystem.stat(fs, path, follow_symlinks=False)) 110 fs, path, mode, follow_symlinks=False))
|
/external/python/cpython3/Modules/clinic/ |
D | posixmodule.c.h | 34 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 219 follow_symlinks = PyObject_IsTrue(args[4]); in os_access() 220 if (follow_symlinks < 0) { in os_access() 224 _return_value = os_access_impl(module, &path, mode, dir_fd, effective_ids, follow_symlinks); in os_access() [all …]
|
/external/python/cpython3/Modules/ |
D | posixmodule.c | 1326 follow_symlinks_specified(const char *function_name, int follow_symlinks) in follow_symlinks_specified() argument 1328 if (follow_symlinks) in follow_symlinks_specified() 1365 int follow_symlinks) in fd_and_follow_symlinks_invalid() argument 1367 if ((fd > 0) && (!follow_symlinks)) { in fd_and_follow_symlinks_invalid() 1378 int follow_symlinks) in dir_fd_and_follow_symlinks_invalid() argument 1380 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { in dir_fd_and_follow_symlinks_invalid() 2415 int dir_fd, int follow_symlinks) in posix_do_stat() argument 2425 if (follow_symlinks_specified(function_name, follow_symlinks)) in posix_do_stat() 2431 fd_and_follow_symlinks_invalid("stat", path->fd, follow_symlinks)) in posix_do_stat() 2438 else if (follow_symlinks) in posix_do_stat() [all …]
|
/external/python/cpython3/Doc/library/ |
D | shutil.rst | 51 .. 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 …]
|
D | os.rst | 1516 If the function also supports *dir_fd* or *follow_symlinks* arguments, it's 1534 * **not following symlinks:** If *follow_symlinks* is 1540 You can check whether or not *follow_symlinks* is supported for a particular 1546 .. function:: access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True) 1558 descriptors <dir_fd>` and :ref:`not following symlinks <follow_symlinks>`. 1596 Added the *dir_fd*, *effective_ids*, and *follow_symlinks* parameters. 1634 .. function:: chflags(path, flags, *, follow_symlinks=True) 1652 This function can support :ref:`not following symlinks <follow_symlinks>`. 1659 The *follow_symlinks* argument. 1665 .. function:: chmod(path, mode, *, dir_fd=None, follow_symlinks=True) [all …]
|
/external/pigweed/pw_toolchain/py/pw_toolchain/ |
D | copy_with_metadata.py | 35 shutil.copy2(src, dest, follow_symlinks=False)
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | FileSystem.h | 1286 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()
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | FileSystem.h | 1332 bool follow_symlinks = true) 1333 : FollowSymlinks(follow_symlinks) { in FollowSymlinks() argument 1341 bool follow_symlinks = true) 1342 : FollowSymlinks(follow_symlinks) { in FollowSymlinks() argument 1395 bool follow_symlinks = true) 1397 Follow(follow_symlinks) { in State()
|
/external/python/cpython3/Lib/test/ |
D | test_shutil.py | 837 shutil.copymode(src_link, dst_link, follow_symlinks=False) 843 shutil.copymode(src_link, dst, follow_symlinks=False) 847 shutil.copymode(src, dst_link, follow_symlinks=False) 862 shutil.copymode(src_link, dst_link, follow_symlinks=False) # silent fail 888 shutil.copystat(src_link, dst_link, follow_symlinks=True) 891 shutil.copystat(src_link, dst_link, follow_symlinks=False) 903 shutil.copystat(src_link, dst, follow_symlinks=False) 921 def _chflags_raiser(path, flags, *, follow_symlinks=True): argument 974 def _raise_on_src(fname, *, follow_symlinks=True): argument 977 return orig_listxattr(fname, follow_symlinks=follow_symlinks) [all …]
|
D | test_posix.py | 461 posix.utime(support.TESTFN, None, follow_symlinks=False) 462 … self.assertRaises(TypeError, posix.utime, support.TESTFN, (None, None), follow_symlinks=False) 463 … self.assertRaises(TypeError, posix.utime, support.TESTFN, (now, None), follow_symlinks=False) 464 … self.assertRaises(TypeError, posix.utime, support.TESTFN, (None, now), follow_symlinks=False) 465 posix.utime(support.TESTFN, (int(now), int(now)), follow_symlinks=False) 466 posix.utime(support.TESTFN, (now, now), follow_symlinks=False) 467 posix.utime(support.TESTFN, follow_symlinks=False) 928 self._test_chflags_regular_file(posix.chflags, support.TESTFN, follow_symlinks=False) 941 return posix.chflags(path, flags, follow_symlinks=False) 1136 posix.utime(support.TESTFN, follow_symlinks=False, dir_fd=f) [all …]
|
D | test_os.py | 693 os.utime(filename, ns=ns, follow_symlinks=False) 801 os.utime(self.fname, (5, 5), follow_symlinks=False) 1266 walk_it = self.walk(self.walk_path, follow_symlinks=True) 1335 for topdown, follow_symlinks in itertools.product((True, False), repeat=2): 1336 walk_kwargs.update(topdown=topdown, followlinks=follow_symlinks) 1337 fwalk_kwargs.update(topdown=topdown, follow_symlinks=follow_symlinks) 1363 for topdown, follow_symlinks in itertools.product((True, False), repeat=2): 1365 for root, dirs, files, rootfd in self.fwalk(*args, follow_symlinks=follow_symlinks): 3442 os.listxattr, follow_symlinks=False) 3880 os.stat(entry.path, follow_symlinks=False).st_ino) [all …]
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_os_test.py | 271 self.os.stat(file_path, follow_symlinks=False)[ 274 self.os.stat(link_path, follow_symlinks=False)[ 291 self.os.stat(file_path, follow_symlinks=False)[ 294 self.os.stat(link_path, follow_symlinks=False)[ 1868 self.os.access(link_path, self.os.F_OK, follow_symlinks=False)) 1870 self.os.access(link_path, self.os.R_OK, follow_symlinks=False)) 1872 self.os.access(link_path, self.os.W_OK, follow_symlinks=False)) 1874 self.os.access(link_path, self.os.X_OK, follow_symlinks=False)) 1876 self.os.access(link_path, self.rwx, follow_symlinks=False)) 1878 self.os.access(link_path, self.rw, follow_symlinks=False)) [all …]
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.7.0a4.rst | 538 ``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
|
D | 3.6.5rc1.rst | 509 ``chmod(..., follow_symlinks=False)`` is not supported. Patch by Anthony
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Unix/ |
D | Path.inc | 847 bool follow_symlinks) { 856 it.CurrentEntry = directory_entry(path_null.str(), follow_symlinks);
|
/external/llvm-project/llvm/lib/Support/Unix/ |
D | Path.inc | 881 bool follow_symlinks) { 890 it.CurrentEntry = directory_entry(path_null.str(), follow_symlinks);
|
/external/python/pyfakefs/ |
D | CHANGES.md | 477 support for `follow_symlinks` argument (Python >= 3.3)
|
/external/python/cpython3/Doc/whatsnew/ |
D | 3.3.rst | 1603 directory descriptors <dir_fd>`) and/or *follow_symlinks* (:ref:`not 1604 following symlinks <follow_symlinks>`):
|
/external/python/cpython3/Misc/ |
D | HISTORY | 6796 - Issue #15202: Consistently use the name "follow_symlinks" for new parameters 7242 Many functions now support "dir_fd" and "follow_symlinks" parameters;
|