Skip to content

Provide directory creates a directory if it does not already exist

License

Notifications You must be signed in to change notification settings

fleetingbytes/provide_dir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Test dependencies

To run the tests you will need

About

Provide directory creates a directory if it does not already exist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages