Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kiesel/blkfree
A program to keep directories / disks cleanup up - it frees blocks, thus the name
https://github.com/kiesel/blkfree
Last synced: 1 day ago
JSON representation
A program to keep directories / disks cleanup up - it frees blocks, thus the name
- Host: GitHub
- URL: https://github.com/kiesel/blkfree
- Owner: kiesel
- License: mit
- Created: 2021-11-30T20:58:34.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-30T21:14:21.000Z (about 3 years ago)
- Last Synced: 2024-11-08T18:23:53.566Z (about 2 months ago)
- Language: JavaScript
- Size: 1020 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# blkfree
A program to keep directories / disks cleanup up - it frees blocks, thus the name.
## Getting started
You need:
- node >= 12
- yarn -> `npm install -g yarn`Install project dependencies:
```
yarn install
```... then build
```
yarn build
```## Running
Currently, run it from the directory of the checkout via `yarn`:
```
$ yarn blkfree free --help
blkfree freeFree space when required
Options:
--help Show help [boolean]
--version Show version number [boolean]
--path Path to check [string] [default: "."]
--reserve When to free space (ie: "10%", "100M", "1G")
[string] [default: "100M"]
--delete Really delete files? [boolean] [default: false]
--watch Run in continuous mode? [boolean] [default: false]
```## Example
```
yarn blkfree free --watch --reserve 100M --path ~/Downloads --delete
```... deletes the oldest file in `~/Downloads` when free space on partition falls below 100MB. Runs in watch mode, ie. continuously monitors space, and actually deletes files (omit `--delete` to dry-run).