stacker.visualization.create_parent_directories#
- create_parent_directories(outfile_prefix)[source]#
Creates necessary parent directories to write an outfile given a prefix
- Parameters:
- outfile_prefixstr
The filepath of the output file, including the path where the file will be saved.
Examples
>>> create_parent_directories('/path/to/output/file.txt') # This will create the directories '/path/to/output' if they do not exist. >>> create_parent_directories('output/file.txt') # This will create the directory 'output' if it does not exist.