skillfed

provide-dir

Provides a directory with all its parent directories, if it does not yet exist

provide-dir v0.1.2 306.4K downloads/30d#7,787 on PyPI0
Permissive license Abandoned released

What it is and what it does

provide_dir is a minimal utility that wraps directory creation with a reporting mechanism. It takes a Path object and a sink function (typically print), then creates the directory and all parent directories if needed, writing a message to the sink to indicate whether the directory was newly created or already existed.

The package is straightforward: it solves the common task of ensuring a directory exists before writing to it, while also providing visibility into whether that directory was freshly made. It requires Python 3.9 or later and depends on colorama for output formatting.

Use it for:

  • Ensure a log directory exists before writing application logs, with confirmation output.
  • Set up nested configuration directories during application initialization.
  • Create output directories in build or test scripts with visibility into what was created.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Creates a directory and all its parent directories if they don't exist, reporting the outcome to a provided sink function like print.

Yes, if you need simple directory creation with reporting. The package is abandoned but stable, carries no vulnerabilities, and has low install friction. Use it for straightforward mkdir-with-parents tasks where you want to know whether the directory was newly created. If you need active maintenance or complex filesystem operations, consider using pathlib.Path.mkdir directly.

Install

provide-dir on PyPI

pip

pip install provide-dir

uv

uv add provide-dir

poetry

poetry add provide-dir

Installing provide-dir

Before you install

Low friction to install. The package is abandoned (last commit 2022-04-13, 1584 days old) but carries no known vulnerabilities and depends only on colorama.

License in practice

Licensed under MIT (permissive), so you can use it freely in commercial and open-source projects without restriction.

Quickstart

from pathlib import Path
from provide_dir import provide_dir

needed_path = Path("/path/to/directory/with/subdirectories")
provide_dir(needed_path, print)

Requires Python 3.9 or later.

Verify before relying

  • Whether colorama is actually used at runtime or only in development/testing.
  • Whether the package handles edge cases like permission errors or symlinks gracefully.

Package facts

License not declared (permissive)
Python support supports the current Python release (>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 1 — colorama
Maintenance abandoned — 1,584 days since the last release
Last repo commit
First released
Downloads 306,358/month — #7,787 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: provide_dir-0.1.2-py3-none-any.whl

Keywords: mkdir, make dir, make directory, recursive

Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersIntended Audience :: End Users/DesktopIntended Audience :: System AdministratorsLicense :: OSI Approved :: MIT LicenseNatural Language :: EnglishOperating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.9Topic :: Software Development :: Testing

Tags

recursive directory creationmkdir with parentscreate nested directoriesmakedirs wrapperdirectory existence check
filesystem-utilitiespath-management

More Testing packages