Flood: Look for and delete empty directories when deleting files from torrent

Created on 9 Jul 2017  路  7Comments  路  Source: Flood-UI/flood

In https://github.com/jfurrow/flood/issues/158#issuecomment-310873594, a user wrote:

Is it possible to delete the empty directories left over from the torrents?

bug enhancement

Most helpful comment

Hello, this bug has been present for more than a year, is it possible to do something to fix it, this kind of problem seems basic for a torrent client, just like displaying disk space...

All 7 comments

I'd like to help fix this as most torrents would contain the files within a folder and these aren't being deleted.

Ref: https://github.com/Novik/ruTorrent/blob/master/plugins/erasedata/update.php

I don't think this is an issue with flood, more of a rtorrent configuration issue.

method.set_key = event.download.erased, remove_file,"execute={rm,-drf,--,$d.data_path=}"

in your rc file will remove any directories (and other files in the directory; the contents of a .rar, for example) when you delete a torrent from flood, make sure you have the d.data_path command defined.

@potatoattack rutorrent supports this without any need for a specific rtorrent configuration, I would hope for the same in flood

Hello. I'm having the same issue even with Flood and rTorrent running under the same user. Any update?

@T-z3P No, the only developer (jfurrow) is not actively developing flood anymore. You can take a look at #712 and #672

Hello, this bug has been present for more than a year, is it possible to do something to fix it, this kind of problem seems basic for a torrent client, just like displaying disk space...

@Whisper40 It's on rtorrent side, just add in your rtorrent.rc:

method.set_key = event.download.erased,delete_erased,"execute=rm,-rf,--,$d.data_path="

And Flood will properly delete folder and content.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jvacek picture jvacek  路  3Comments

noraj picture noraj  路  4Comments

noraj picture noraj  路  3Comments

Phr33d0m picture Phr33d0m  路  6Comments

noeuse picture noeuse  路  5Comments