Skip to main content

Recursively removes a non-empty directory

Project description

remove_directory

Function to recursively remove a non-empty directory. Posted by Boris on stackexchange.

Dependencies

None

Usage

from pathlib import Path
from remove_directory import rmdir

p = Path("/path/to/directory")
rmdir(p)

Installation

Pip

pip install remove_directory

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

remove_directory-0.0.1.tar.gz (4.6 kB view hashes)

Uploaded Source

Built Distribution

remove_directory-0.0.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page