arctichoke.path.manipulate_paths
Functions
|
Remove a non-empty directory and all its contents. |
|
Create a file path. |
Module Contents
- arctichoke.path.manipulate_paths.remove_non_empty_directory(base_dir)
Remove a non-empty directory and all its contents.
Recursively delete all files and directories in the given path.
- Parameters:
base_dir (str) – Relative path to the directory to be removed.
- arctichoke.path.manipulate_paths.make_file_path(path)
Create a file path.
Create the specified directory structure if the given path doesn’t exist.
- Parameters:
path (str) – Relative path to make.
- Returns:
path – The verified path to the data files.
- Return type:
str
Examples
>>> make_file_path('datafiles/some/more/data/a_file.txt') 'datafiles/some/more/data/'