Files
files
¶
Functions¶
ensure_containing_folder(filename)
¶
Ensure the folder containing this file exists. Nothing happens if already present.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filename |
PATH_TYPE
|
The path to the file for which the containing folder should be created |
required |
Source code in geograypher/utils/files.py
ensure_folder(folder)
¶
Ensure this folder, and parent folders, exist. Nothing happens if already present
Parameters:
Name | Type | Description | Default |
---|---|---|---|
folder |
PATH_TYPE
|
Path to folder to ensure exists |
required |