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
Release files for free-disk 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| free-disk-1.0.0.tar.gz | 20.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| free_disk-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.2 kB
Release files / free-disk-1.0.0.tar.gz
| Download URL | free-disk-1.0.0.tar.gz |
|---|---|
| Size | 20.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbef53059eebb14feb1ffd6d887df3783eef08e852d59f09416b792fb4f91971
|
|
BLAKE2b-256 checksum How to use checksums |
85ac5bfb86bb7876b408d1028a39f5d345f867f4520e24ee07fc5d108873502c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / free_disk-1.0.0-py3-none-any.whl
| Download URL | free_disk-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd6591376bfce3cc5d1977daed65424ecba3258a888806565022a976915ca68c
|
|
BLAKE2b-256 checksum How to use checksums |
21f8dd5d81678b55bee9ec5f76005c9c054c596c8a1ec83cbc30f92472b994ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|