Home | History | Annotate | Download | only in python2.7

Lines Matching refs:directory

7   - os.curdir is a string representing the current directory ('.' or ':')
8 - os.pardir is a string representing the parent directory ('..' or '::')
133 # Super directory utilities.
139 Super-mkdir; create a leaf directory and all intermediate ones.
162 Super-rmdir; remove a leaf directory and all empty intermediate
163 ones. Works like rmdir except that, if the leaf directory is
167 ignored -- they generally mean that a directory was not empty.
189 whole path is consumed or a nonempty directory is found.
191 Note: this function can fail with the new directory structure made
192 if you lack permissions needed to unlink the leaf directory or
210 """Directory tree generator.
212 For each directory in the directory tree rooted at top (including top
217 dirpath is a string, the path to the directory. dirnames is a list of
219 filenames is a list of the names of the non-directory files in dirpath.
221 To get a full path (which begins with top) to a file or directory in
225 directory is generated before the triples for any of its subdirectories
227 for a directory is generated after the triples for all of its
250 current working directory between resumptions of walk. walk never
251 changes the current directory, and assumes that the client doesn't
261 print "bytes in", len(files), "non-directory files"
269 # get a list of the files the directory contains. os.path.walk