#download #file #service #cleanup #configurable #pattern #directory

app janitor-service

A service that cleans up your downloads folder

38 releases

new 0.1.38 Jan 11, 2025
0.1.36 Dec 29, 2024
0.1.31 Nov 12, 2024
0.1.27 May 19, 2024
0.1.9 Jul 23, 2023

#91 in Unix APIs

Download history 25/week @ 2024-09-22 278/week @ 2024-11-03 183/week @ 2024-11-10 25/week @ 2024-11-17 1/week @ 2024-11-24 188/week @ 2024-12-08 10/week @ 2024-12-15 342/week @ 2024-12-29 103/week @ 2025-01-05

470 downloads per month

MIT license

84KB
313 lines

janitor-service

A configurable downloads organizer written in rust

Installation / Update

cargo install janitor-service

Usage

  1. run the janitor binary
  2. a janitor.toml file would be created in your downloads directory
  3. update the toml file with patterns and destinations - examples entry can be used as reference - patterns are comma separated tuples

Configuring Auto Start/Restart with SystemD (Not available on Windows)

# Generate the unit file in into the user systemd folder
janitor-service systemd > ~/.config/systemd/user/janitor.service

# Enable and start the service
systemctl --user enable janitor.service --now

# Check program output / logs
journalctl --user -u janitor.service --follow

# Update when using systemd
cargo install janitor-service
systemctl --user restart janitor.service

fun fact: this is my first ever rust app

Dependencies

~10–37MB
~608K SLoC