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 details)
Built Distribution
File details
Details for the file free-disk-1.0.0.tar.gz
.
File metadata
- Download URL: free-disk-1.0.0.tar.gz
- Upload date:
- Size: 20.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbef53059eebb14feb1ffd6d887df3783eef08e852d59f09416b792fb4f91971 |
|
MD5 | c1346a74a780bca73e731da6a2410ec7 |
|
BLAKE2b-256 | 85ac5bfb86bb7876b408d1028a39f5d345f867f4520e24ee07fc5d108873502c |
File details
Details for the file free_disk-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: free_disk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.4.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd6591376bfce3cc5d1977daed65424ecba3258a888806565022a976915ca68c |
|
MD5 | abe77e53ea13a245d3de1bdc15bd4a16 |
|
BLAKE2b-256 | 21f8dd5d81678b55bee9ec5f76005c9c054c596c8a1ec83cbc30f92472b994ca |