Skip to main content

delete file with oldest modification date until a minimum of --free-bytes are available on disk

Project description

free-disk 💾

Code style: black CI Pipeline Status Last Release Python Version

Delete file with the oldest modification date until a minimum of --free-bytes are available on the respective disk.

Install

pip3 install --user --upgrade free-disk

Usage

free-disk --help
free-disk --free-bytes 1GiB /dir/to/cleanup
free-disk --free-bytes 1GiB --delete-path-regex '\.mp4$' /dir/to/cleanup
free-disk --debug --free-bytes 2GB /dir/to/cleanup

Tests

pip3 install --user pipenv
git clone https://github.com/fphammerle/free-disk.git
cd freesurfer-volume-reader
pipenv run pylint free_disk
pipenv run pytest

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

free-disk-1.0.0.tar.gz (20.9 kB view hashes)

Uploaded Source

Built Distribution

free_disk-1.0.0-py3-none-any.whl (4.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