Lines Matching refs:root_dir
13 def glob(pathname, *, root_dir=None, dir_fd=None, recursive=False,
28 return list(iglob(pathname, root_dir=root_dir, dir_fd=dir_fd, recursive=recursive,
31 def iglob(pathname, *, root_dir=None, dir_fd=None, recursive=False,
44 sys.audit("glob.glob/2", pathname, recursive, root_dir, dir_fd)
45 if root_dir is not None:
46 root_dir = os.fspath(root_dir)
48 root_dir = pathname[:0]
49 it = _iglob(pathname, root_dir, dir_fd, recursive, False,
60 def _iglob(pathname, root_dir, dir_fd, recursive, dironly,
66 if _lexists(_join(root_dir, pathname), dir_fd):
70 if _isdir(_join(root_dir, dirname), dir_fd):
75 yield from _glob2(root_dir, basename, dir_fd, dironly,
78 yield from _glob1(root_dir, basename, dir_fd, dironly,
85 dirs = _iglob(dirname, root_dir, dir_fd, recursive, True,
97 for name in glob_in_dir(_join(root_dir, dirname), basename, dir_fd, dironly,