Creates a directory if it doesn't already exist.
(path)
| 200 | |
| 201 | |
| 202 | def create_directory(path): |
| 203 | """ Creates a directory if it doesn't already exist. """ |
| 204 | if not os.path.exists(path): |
| 205 | msg("Creating directory %s" % (path)) |
| 206 | if not options.dryrun: |
| 207 | os.makedirs(path) |
| 208 | |
| 209 | |
| 210 | def delete_directory(path): |