Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
This script will list those files that are not part of the torrents loaded by a torrent application, but do occur in the given download directory.
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
effbot
.gitignore
README.md
listStaleTorrentData.py

README.md

List stale torrent data

Determine wich downloaded files are no longer in use by a torrent application. This script will list those files that are not part of the torrents loaded by a specific torrent application, but does exist in the given download directory. This script will work with any torrent application that uses a directory with torrent files to store it's state. Note that only the one torrent application should be using the download folder to store files, because only that application's known torrents will be checked.

Example usage:

python listStaleTorrentData.py -t /home/user/.config/deluge/state -d /home/user/downloads/
python listStaleTorrentData.py -t /home/user/.config/transmission/torrents/ -d /home/user/downloads/ -p .part
python listStaleTorrentData.py -t /var/lib/transmission-daemon/info/torrents/ -d /home/user/downloads1/,/home/user/downloads2/

Help message:

Determine wich downloaded files are no longer in use by a torrent application.

optional arguments: -h, --help show this help message and exit -t TORRENTPATH, --torrentpath TORRENTPATH The directory that holds the torrent application's state data, such as /home/user/.config/deluge/state, /home/user/.config/transmission/torrents/ or /var/lib /transmission-daemon/info/torrents/ -d DOWNLOADPATHS, --downloadpaths DOWNLOADPATHS The comma-separated list of paths that the torrent application uses to store complete or partial downloads -s TORRENTSUFFIX, --torrentsuffix TORRENTSUFFIX The suffix of the torrent files -p PARTIALFILESUFFIX, --partialfilesuffix PARTIALFILESUFFIX The suffix of the partially downloaded files

Something went wrong with that request. Please try again.