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
Metadata
Release files for free-disk 2.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 | Provenance | Actions |
|---|---|---|---|---|
| free_disk-2.0.0.tar.gz | 33.9 kB | Without provenance | Details for free_disk-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| free_disk-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for free_disk-2.0.0-py3-none-any.whl |
Total release size: 38.3 kB
Release files / free_disk-2.0.0.tar.gz
| Download URL | free_disk-2.0.0.tar.gz |
|---|---|
| Size | 33.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
30fb86f7f3e36648677a357d33c36a8a2fd77c09c12847c0298bb2e9b64a49d0
|
|
BLAKE2b-256 checksum How to use checksums |
8f6e1d96f8eae7eaab1be241c01a6f64f24508dd693260a618325ddc48ba44b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / free_disk-2.0.0-py3-none-any.whl
| Download URL | free_disk-2.0.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
620b0404bc96c287b3b7a3d428c1c9eba204383448eeca8e156193452f618d28
|
|
BLAKE2b-256 checksum How to use checksums |
538ee22bbdd1537dba316ee55371c93cd8855d16795da31e89959807a197b9ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for free-disk 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.