Skip to main content

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

Metadata

Release files for provide-dir 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for provide-dir 0.1.2
File Size Uploaded
provide_dir-0.1.2.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for provide-dir 0.1.2
File Interpreter ABI Platform
provide_dir-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / provide_dir-0.1.2.tar.gz

Download URL provide_dir-0.1.2.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
74756777bfa2d794bc9df4f3630797e03844a1612f0f00e0d98567e34674e146
BLAKE2b-256 checksum
How to use checksums
b8c0b7bec1a9bbb6f7a1843359509427c429152a6ea37db5cd4bbcb4e818d414
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Release files / provide_dir-0.1.2-py3-none-any.whl

Download URL provide_dir-0.1.2-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
214f7c00d3962aa41fa2e8b36451197823d5ea2a0526c085376fb3687bdc5fa1
BLAKE2b-256 checksum
How to use checksums
4981d7ebfd2aab814108fa67676bf8277f4c2861b4ff63cd07e46f9e9125069d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page