Home
last modified time | relevance | path

Searched refs:follow_symlinks (Results 1 - 12 of 12) sorted by relevance

/third_party/python/Lib/
H A Dshutil.py226 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)
[all...]
H A Dos.py165 # os.chmod supports follow_symlinks. Just checking lchmod() is
431 def fwalk(top=".", topdown=True, onerror=None, *, follow_symlinks=False, dir_fd=None):
442 races (when follow_symlinks is False).
464 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):
487 entries = None if topdown or follow_symlinks els
[all...]
H A Dpathlib.py391 entry_is_dir = entry.is_dir(follow_symlinks=False)
1008 def stat(self, *, follow_symlinks=True):
1013 return os.stat(self, follow_symlinks=follow_symlinks)
1128 def chmod(self, mode, *, follow_symlinks=True):
1132 os.chmod(self, mode, follow_symlinks=follow_symlinks)
1139 self.chmod(mode, follow_symlinks=False)
1163 return self.stat(follow_symlinks=False)
H A Dtempfile.py273 # Pass follow_symlinks=False, unless not supported on this platform.
275 func(path, *args, follow_symlinks=False)
/third_party/python/Modules/
H A Dposixmodule.c1415 follow_symlinks_specified(const char *function_name, int follow_symlinks) in follow_symlinks_specified() argument
1417 if (follow_symlinks) in follow_symlinks_specified()
1420 argument_unavailable_error(function_name, "follow_symlinks"); in follow_symlinks_specified()
1454 int follow_symlinks) in fd_and_follow_symlinks_invalid()
1456 if ((fd > 0) && (!follow_symlinks)) { in fd_and_follow_symlinks_invalid()
1458 "%s: cannot use fd and follow_symlinks together", in fd_and_follow_symlinks_invalid()
1467 int follow_symlinks) in dir_fd_and_follow_symlinks_invalid()
1469 if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { in dir_fd_and_follow_symlinks_invalid()
1471 "%s: cannot use dir_fd and follow_symlinks together", in dir_fd_and_follow_symlinks_invalid()
2522 int dir_fd, int follow_symlinks) in posix_do_stat()
1453 fd_and_follow_symlinks_invalid(const char *function_name, int fd, int follow_symlinks) fd_and_follow_symlinks_invalid() argument
1466 dir_fd_and_follow_symlinks_invalid(const char *function_name, int dir_fd, int follow_symlinks) dir_fd_and_follow_symlinks_invalid() argument
2521 posix_do_stat(PyObject *module, const char *function_name, path_t *path, int dir_fd, int follow_symlinks) posix_do_stat() argument
2908 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks) os_stat_impl() argument
2934 int follow_symlinks = 0; os_lstat_impl() local
2979 os_access_impl(PyObject *module, path_t *path, int mode, int dir_fd, int effective_ids, int follow_symlinks) os_access_impl() argument
3248 os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd, int follow_symlinks) os_chmod_impl() argument
3463 os_chflags_impl(PyObject *module, path_t *path, unsigned long flags, int follow_symlinks) os_chflags_impl() argument
3651 os_chown_impl(PyObject *module, path_t *path, uid_t uid, gid_t gid, int dir_fd, int follow_symlinks) os_chown_impl() argument
3944 os_link_impl(PyObject *module, path_t *src, path_t *dst, int src_dir_fd, int dst_dir_fd, int follow_symlinks) os_link_impl() argument
5302 utime_dir_fd(utime_t *ut, int dir_fd, const char *path, int follow_symlinks) utime_dir_fd() argument
5505 os_utime_impl(PyObject *module, path_t *path, PyObject *times, PyObject *ns, int dir_fd, int follow_symlinks) os_utime_impl() argument
12913 os_getxattr_impl(PyObject *module, path_t *path, path_t *attribute, int follow_symlinks) os_getxattr_impl() argument
12989 os_setxattr_impl(PyObject *module, path_t *path, path_t *attribute, Py_buffer *value, int flags, int follow_symlinks) os_setxattr_impl() argument
13042 os_removexattr_impl(PyObject *module, path_t *path, path_t *attribute, int follow_symlinks) os_removexattr_impl() argument
13089 os_listxattr_impl(PyObject *module, path_t *path, int follow_symlinks) os_listxattr_impl() argument
13670 DirEntry_fetch_stat(PyObject *module, DirEntry *self, int follow_symlinks) DirEntry_fetch_stat() argument
13758 os_DirEntry_stat_impl(DirEntry *self, PyTypeObject *defining_class, int follow_symlinks) os_DirEntry_stat_impl() argument
13786 DirEntry_test_mode(PyTypeObject *defining_class, DirEntry *self, int follow_symlinks, unsigned short mode_bits) DirEntry_test_mode() argument
13875 os_DirEntry_is_dir_impl(DirEntry *self, PyTypeObject *defining_class, int follow_symlinks) os_DirEntry_is_dir_impl() argument
13893 os_DirEntry_is_file_impl(DirEntry *self, PyTypeObject *defining_class, int follow_symlinks) os_DirEntry_is_file_impl() argument
[all...]
/third_party/python/Modules/clinic/
H A Dposixmodule.c.h6 "stat($module, /, path, *, dir_fd=None, follow_symlinks=True)\n"
18 " follow_symlinks\n"
23 "dir_fd and follow_symlinks may not be implemented\n"
27 "It\'s an error to use dir_fd or follow_symlinks when specifying path as\n"
34 os_stat_impl(PyObject *module, path_t *path, int dir_fd, int follow_symlinks);
40 static const char * const _keywords[] = {"path", "dir_fd", "follow_symlinks", NULL}; in os_stat()
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()
180 int follow_symlinks = 1; os_access() local
415 int follow_symlinks = 1; os_chmod() local
579 int follow_symlinks = 1; os_chflags() local
852 int follow_symlinks = 1; os_chown() local
1069 int follow_symlinks = 1; os_link() local
2042 int follow_symlinks = 1; os_utime() local
7557 int follow_symlinks = 1; os_getxattr() local
7623 int follow_symlinks = 1; os_setxattr() local
7710 int follow_symlinks = 1; os_removexattr() local
7772 int follow_symlinks = 1; os_listxattr() local
8370 int follow_symlinks = 1; os_DirEntry_stat() local
8411 int follow_symlinks = 1; os_DirEntry_is_dir() local
8457 int follow_symlinks = 1; os_DirEntry_is_file() local
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
H A DFileSystem.h1286 bool follow_symlinks = true) in directory_iterator()
1287 : FollowSymlinks(follow_symlinks) { in directory_iterator()
1295 bool follow_symlinks = true) in directory_iterator()
1296 : FollowSymlinks(follow_symlinks) { in directory_iterator()
1349 bool follow_symlinks = true) in recursive_directory_iterator()
1351 Follow(follow_symlinks) { in recursive_directory_iterator()
/third_party/python/Lib/test/
H A Dtest_shutil.py876 shutil.copymode(src_link, dst_link, follow_symlinks=False)
882 shutil.copymode(src_link, dst, follow_symlinks=False)
886 shutil.copymode(src, dst_link, follow_symlinks=False)
901 shutil.copymode(src_link, dst_link, follow_symlinks=False) # silent fail
927 shutil.copystat(src_link, dst_link, follow_symlinks=True)
930 shutil.copystat(src_link, dst_link, follow_symlinks=False)
942 shutil.copystat(src_link, dst, follow_symlinks=False)
960 def _chflags_raiser(path, flags, *, follow_symlinks=True):
1013 def _raise_on_src(fname, *, follow_symlinks=True):
1016 return orig_listxattr(fname, follow_symlinks
[all...]
H A Dtest_posix.py465 @unittest.skipUnless(os.utime in os.supports_follow_symlinks, "test needs follow_symlinks support in os.utime")
468 posix.utime(os_helper.TESTFN, None, follow_symlinks=False)
470 (None, None), follow_symlinks=False)
472 (now, None), follow_symlinks=False)
474 (None, now), follow_symlinks=False)
476 follow_symlinks=False)
477 posix.utime(os_helper.TESTFN, (now, now), follow_symlinks=False)
478 posix.utime(os_helper.TESTFN, follow_symlinks=False)
968 follow_symlinks=False)
981 return posix.chflags(path, flags, follow_symlinks
[all...]
H A Dtest_os.py835 "follow_symlinks support for utime required "
839 # use follow_symlinks=False to test utimensat(timespec)
841 os.utime(filename, ns=ns, follow_symlinks=False)
946 os.utime(self.fname, (5, 5), follow_symlinks=False)
1282 if 'follow_symlinks' in kwargs:
1283 kwargs['followlinks'] = kwargs.pop('follow_symlinks')
1422 walk_it = self.walk(self.walk_path, follow_symlinks=True)
1491 for topdown, follow_symlinks in itertools.product((True, False), repeat=2):
1492 walk_kwargs.update(topdown=topdown, followlinks=follow_symlinks)
1493 fwalk_kwargs.update(topdown=topdown, follow_symlinks
[all...]
H A Dtest_pathlib.py1936 p.chmod(new_mode, follow_symlinks=True)
1940 p.chmod(new_mode, follow_symlinks=True)
1959 self.assertNotEqual(st, p.stat(follow_symlinks=False))
1964 self.assertEqual(st, p.stat(follow_symlinks=False))
H A Dtest_tempfile.py1602 os.chmod(symlink, mode, follow_symlinks=False)
1652 os.chflags(symlink, flags, follow_symlinks=False)

Completed in 59 milliseconds