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.1.tar.gz (9.4 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.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: free-disk-0.2.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9

File hashes

Hashes for free-disk-0.2.1.tar.gz
Algorithm Hash digest
SHA256 de698c5126b55b28ec0c517647a1353e218d583731dd029e3e510dbf48c888d8
MD5 2142b0976e7ad6f945fda02feb29f65f
BLAKE2b-256 d59939734fa924d0605d90b1de3b774f48bd97d3bfe0e8a9673abad83b59b8e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: free_disk-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/3.6.9

File hashes

Hashes for free_disk-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1baa673dd804b6cd9f0e17ae836c5cacf10221635b5c82196878df593e0dec6a
MD5 c9b2677376dc0e12a47724f0454aadb8
BLAKE2b-256 19e78bda651cb36a95396f4f6a7bdf0e55f4b503e3016f1f1b0d2e17ec93e6e1

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