Searched refs:topfd (Results 1 – 3 of 3) sorted by relevance
/third_party/python/Lib/ |
D | os.py | 470 topfd = open(top, O_RDONLY, dir_fd=dir_fd) 473 path.samestat(orig_st, stat(topfd)))): 474 yield from _fwalk(topfd, top, isinstance(top, bytes), 477 close(topfd) 479 def _fwalk(topfd, toppath, isbytes, topdown, onerror, follow_symlinks): argument 484 scandir_it = scandir(topfd) 508 yield toppath, dirs, nondirs, topfd 514 orig_st = stat(name, dir_fd=topfd, follow_symlinks=False) 519 dirfd = open(name, O_RDONLY, dir_fd=topfd) 533 yield toppath, dirs, nondirs, topfd
|
D | shutil.py | 624 def _rmtree_safe_fd(topfd, path, onerror): argument 626 with os.scandir(topfd) as scandir_it: 648 dirfd = os.open(entry.name, os.O_RDONLY, dir_fd=topfd) 656 os.rmdir(entry.name, dir_fd=topfd) 672 os.unlink(entry.name, dir_fd=topfd)
|
/third_party/python/Lib/test/ |
D | test_os.py | 1549 for broot, bdirs, bfiles, topfd in os.fwalk(os.fsencode(top), *args, **kwargs): 1553 yield (root, dirs, files, topfd)
|