Skip to main content

delete file with oldest modification date until a minimum of --free-bytes are available on disk

Project description

free-disk 💾

Code style: black Build 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 --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-0.2.2.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

free_disk-0.2.2-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file free-disk-0.2.2.tar.gz.

File metadata

  • Download URL: free-disk-0.2.2.tar.gz
  • Upload date:
  • Size: 17.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for free-disk-0.2.2.tar.gz
Algorithm Hash digest
SHA256 b572aa05ac61e974da36614e67924431334ee8bf0d5e2529ba182efe7e13ce94
MD5 63607891d7edca15e2e4f872b9693f17
BLAKE2b-256 49329551c59b9f9ce3acd30095960fea0fcda38590e6fa1d464f6df11e65f888

See more details on using hashes here.

File details

Details for the file free_disk-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: free_disk-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.23.0 setuptools/49.3.1 requests-toolbelt/0.8.0 tqdm/4.48.2 CPython/3.8.6

File hashes

Hashes for free_disk-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6a219897f5b62d5cdac32d8ea44d0e26b559e3798dcfc75d92af297201b154e2
MD5 6a64ff6b7fc50211574af1c7bfa5dc51
BLAKE2b-256 b8a3e5d0eecc1720c22488d3eeff07325c6295d3ec64c4c0746f77d195669f17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page