Provides a directory with all its parent directories, if it does not yet exist
Project description
provide_directory
Function to create the given path, including potential parent directories. Writes to the provided sink (e.g. print
) whether the directory was created or whether it already existed.
Dependencies
None
Usage
from pathlib import Path
from provide_dir import provide_dir
needed_path = Path("/path/to/directory/with/subdirectories")
provide_dir(needed_path, print)
Installation
Pip
pip install provide_dir
Developer's Installation
You can clone the repository and install it with pip install -e /path/to/local/repository
.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
provide_dir-0.1.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for provide_dir-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e950b2add58637863184b8901c991503d66541766929bccf924fa10034bf5bb9 |
|
MD5 | 2f1b59358b5401ac63a28b6e555453d2 |
|
BLAKE2b-256 | a255df17d8813990a37499260f00219f7d1725dec4f907c92c9768949f8888d5 |