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

app janitor-service

A service that cleans up your downloads folder

39 releases

0.1.39 Feb 20, 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

#125 in Unix APIs

Download history 76/week @ 2024-11-13 13/week @ 2024-11-20 8/week @ 2024-12-04 188/week @ 2024-12-11 2/week @ 2024-12-18 333/week @ 2024-12-25 15/week @ 2025-01-01 217/week @ 2025-01-08 21/week @ 2025-01-15 5/week @ 2025-02-05 127/week @ 2025-02-19 9/week @ 2025-02-26

141 downloads per month

MIT license

83KB
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

~11–38MB
~620K SLoC