Lines Matching refs:directory
3 Utility functions for manipulating directories and directory trees."""
15 # b) it blows up if the directory already exists (I want to silently
18 """Create a directory and any missing ancestor directories.
20 If the directory already exists (or if 'name' is the empty string, which
21 means the current directory, which of course exists), then do nothing.
22 Raise DistutilsFileError if unable to create some directory along the way
23 (eg. some sub-path exists, but is a file rather than a directory).
36 # each directory in the path (the current behaviour), or only announce
54 # now 'head' contains the deepest directory that already exists
55 # (that is, the child of 'head' in 'name' is the highest directory
84 'base_dir' is just the name of a directory which doesn't necessarily
86 'base_dir'. 'base_dir' + the directory portion of every file in 'files'
101 """Copy an entire directory tree 'src' to a new location 'dst'.
103 Both 'src' and 'dst' must be directory names. If 'src' is not a
104 directory, raise DistutilsFileError. If 'dst' does not exist, it is
124 "cannot copy tree '%s': not a directory" % src)
178 def remove_tree(directory, verbose=1, dry_run=0):
179 """Recursively remove an entire directory tree.
187 log.info("removing '%s' (and everything under it)", directory)
191 _build_cmdtuple(directory, cmdtuples)
200 log.warn("error removing %s: %s", directory, exc)