暫無描述

Fabian Peter Hammerle 0d16266ff7 document release v2.0.0 1 周之前
.github 140a0ae7c7 test & declare compatibility with python3.15 (#278) 1 周之前
free_disk 504a1dc2f6 drop python3.10, adopt python3.11 features (#276) 1 周之前
tests 17d8a1590f pylint: enable various optional checks/extensions 4 年之前
.gitignore dbcdf64ac2 env: downgrade zipp to restore compatibility with python3.4 & python3.5 6 年之前
.pylintrc 4849a4f447 drop compatibility with python3.9 1 年之前
AGENTS.md 16bb82cb1a AGENTS.md: sync with instructions of other repositories (#274) 2 周之前
CHANGELOG.md 0d16266ff7 document release v2.0.0 1 周之前
LICENSE 576cd0c9fa MIT license 7 年之前
Pipfile 504a1dc2f6 drop python3.10, adopt python3.11 features (#276) 1 周之前
Pipfile.lock 504a1dc2f6 drop python3.10, adopt python3.11 features (#276) 1 周之前
README.md e5821e5159 rename param `--delete-re` to `--delete-path-regex` (to avoid ambiguity) 4 年之前
mypy.ini 28839ae92a add additional (internal) type hints to enable mypy's strict mode 4 年之前
pyproject.toml 690bf1a5df move specification of build dependency on setuptools-scm from setup.py to pyproject.toml 1 年之前
setup.py 140a0ae7c7 test & declare compatibility with python3.15 (#278) 1 周之前

README.md

free-disk 💾

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