arfoll / unrarall

bash script to unrar everything and cleanup in a given directory
GNU General Public License v3.0
261 stars 68 forks source link

How to run cleanup over directories that dont contain rars? #28

Closed ghost closed 7 years ago

ghost commented 8 years ago

How to run cleanup over directories that dont contain rars?

Sometimes my sub folders/files never downloaded as rars. but they still have the sample and .nfo, etc. Can this script be configured to clean those up? It seems to be ignoring them right now

delcypher commented 7 years ago

@meffect This is not something unrarall is designed to support. You could of course hack unrarall's code to run the hooks in every directory recursively but this isn't something I think unrarall should support unless we can come up with a sane way to do this that doesn't over complicate the code.

You're welcome to try.

ghost commented 7 years ago

I wonder how best do it. unrarall's most common use case this is very common issue I would think

delcypher commented 7 years ago

@meffect

At a guess we'd probably want a --no-extract flag that changes unrarall's behaviour. In the script the hooks would be run on every directory recursively (bottom up).

I don't have the time to implement this but you're welcome to try.