ntv1000 / rtorrent-cleanup

A script to delete files from your rtorrent download directory that are not referenced in rtorrent.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rtorrent-cleanup

This script is used to automatically delete files that are not visible in rtorrent anymore, but still present in the download directory.

Usage

./rtorrent_cleanup.py [--dry] WORKING_DIR DOWNLOAD_DIR [DOWNLOAD_DIR ...]

Arguments:

WORKING_DIR The working directory (called 'session' in rtorrent.rc) of your rtorrent instance.

DOWNLOAD_DIR The download directories that should be cleaned up.

Optional arguments:

--dry Lists all files that would be deleted

Example

./rtorrent_cleanup.py /path/to/working/dir/ /path/to/download/dir/

This will delete all files from /path/to/working/dir that are not visible in the rtorrent instance which uses /path/to/download/dir/ as session directory.

About

A script to delete files from your rtorrent download directory that are not referenced in rtorrent.

License:MIT License


Languages

Language:Python 100.0%