Lines Matching +full:is +full:- +full:path +full:- +full:inside
17 The pattern may contain simple shell-style wildcards a la
22 If `include_hidden` is true, the patterns '*', '?', '**' will match hidden
25 If `recursive` is true, the pattern '**' will match any files and
35 The pattern may contain simple shell-style wildcards a la
40 If recursive is true, the pattern '**' will match any files and
45 if root_dir is not None:
62 dirname, basename = os.path.split(pathname)
81 # `os.path.split()` returns the argument itself as a dirname if it is a
82 # drive or UNC path. Prevent an infinite recursion if a drive or UNC path
99 yield os.path.join(dirname, name)
101 # These 2 helper functions non-recursively glob inside a literal directory.
116 # `os.path.split()` returns an empty basename for paths ending with a
122 # Following functions are not public but can be used by third-party code.
130 # This helper function recursively yields relative pathnames inside a literal
139 # If dironly is false, yields all file names inside a directory.
140 # If dironly is true, yields only directory names.
145 if dir_fd is not None:
163 if fsencode is not None:
170 if fd is not None:
179 # Recursively yields relative pathnames inside a literal directory.
185 path = _join(dirname, x) if dirname else x
186 for y in _rlistdir(path, dir_fd, dironly,
192 # Same as os.path.lexists(), but with dir_fd
193 if dir_fd is None:
194 return os.path.lexists(pathname)
203 # Same as os.path.isdir(), but with dir_fd
204 if dir_fd is None:
205 return os.path.isdir(pathname)
214 # It is common if dirname or basename is empty
217 return os.path.join(dirname, basename)
227 return match is not None
229 def _ishidden(path): argument
230 return path[0] in ('.', b'.'[0])
241 # Escaping is done by wrapping any of "*?[" between square brackets.
243 drive, pathname = os.path.splitdrive(pathname)