delete file with oldest modification date until a minimum of --free-bytes are available on disk
Project description
free-disk 💾
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)
Built Distribution
Close
Hashes for free_disk-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd6591376bfce3cc5d1977daed65424ecba3258a888806565022a976915ca68c |
|
MD5 | abe77e53ea13a245d3de1bdc15bd4a16 |
|
BLAKE2b-256 | 21f8dd5d81678b55bee9ec5f76005c9c054c596c8a1ec83cbc30f92472b994ca |