File utilities.
New in version 1.8.
Delete a file, but ignore file not found error.
Parameters: |
|
---|
Create a directory (and any ancestor directories required)
Parameters: |
|
---|
Protect code that wants to operate on PATH atomically. Any exception will cause PATH to be removed.
Parameters: |
|
---|
Create a temporary file containing data.
Create a temporary file containing specified content, with a specified filename suffix and prefix. The tempfile will be created in a default location, or in the directory path, if it is not None. path and its parent directories will be created if they don’t exist.
Parameters: |
|
---|
For example: it can be used in database tests for creating configuration files.
New in version 1.9.