Bases: object
A file cache. The path of the cache can be specified or else use ~/.nipy/cache by default.
Copy a file into the cache.
| Returns: | None |
|---|
Delete all files in the cache.
| Returns: | None |
|---|
Return the complete path + filename within the cache.
| Returns: | string |
|---|
Check if a file exists in the cache.
| Returns: | bool |
|---|
Retrieve a file from the cache. If not already there, create the file and add it to the cache.
| Returns: | file |
|---|
Ensure that the given directory path actually exists. If it doesn’t, create it.
| Returns: | None |
|---|
Check whether a given string can be parsed as a URL.
| Parameters: |
|
|---|---|
| Returns: | bool |
Test if the given mode will open a file for writing.
| Parameters: |
|
|---|---|
| Returns: | bool |
Is this filename a zip file.
| Returns: | bool |
|---|
Unzip the given file into another file. Return the new file’s name.
| Returns: | string |
|---|