Comments (5)
We could do the clean-misc option for thumds/ds_store, unsure about the downloader dump, what kind of garbage do you usually get? What is the .srr/.srs file? But sure, we could delete those.
For the sample, I've been thinking about doing it, but I'm unsure of a sure way of deleting them, sometimes its $sfilename-sample* or sometimes in a Samples/ dir. samples.sfv I've never seen, sample(s) comes from the same rar archive/chain so I don't see why you'd need a seperate sfv file?
Ideas are always welcome, thanks for those already :) If you have some time to code them I'd be more than happy to merge those!
from unrarall.
I have an idea for this. What we could do is introduce a family of functions whose job it is to do some part of the clean up... e.g.
function unrarall-clean-rars()
function unrarall-clean-nfo()
function unrarall-clean-sfv()
function unrarall-clean-sample()
function unrarall-clean-osx-garbage()
function unrarall-clean-windows-garbage()
and then on the command line the user can pick which ones to use.
unrarall --clean=rars,nfo
Hopefully this would keep things clean as we add more and more things we want deleted after extraction.
and there could be two special options --clean=none
and --clean=all
These functions could also include their own help to explain what they do. The author of one of these functions could assume that the first argument is "clean" or "help" so it knows what to do and the second argument passed could be the full path to the current working directory.
Or is this over complicating things?
from unrarall.
Over complicating? Impossible in bashland ;-)
That sounds quite good, lets give it a go with the current features so we can implement the other stuff easily if wanted/needed.
from unrarall.
I've created a branch with the basic ideas in place but that has not been tested. Please take a look.
https://github.com/arfoll/unrarall/tree/clean-up-hooks
from unrarall.
This is now being dealt with in the "Introduced clean-up hooks" issue ( #6 )
from unrarall.
Related Issues (20)
- unrarall cleans files if subs rar has extracted cleanly HOT 6
- FR: Move subtitle files to main dir HOT 2
- Mac sed, the special snowflake... HOT 3
- Clobbering files on extraction and skipping already extracted files HOT 1
- extraction fails if source folder name has spaces HOT 5
- wishlist HOT 1
- provide example usage in readme.md HOT 2
- [BASH 3] Relative path gives error message about UNRARALL_OUTPUT_DIR not being a directory HOT 4
- Egrep style regular expressions break finding rar files in certain cases. HOT 1
- Valid rar file invalid mime type HOT 2
- .r00 files not found HOT 1
- Does not obey --skip-if-exists. HOT 2
- Feature request: Option to rename output file to parent directory HOT 1
- Allow 7zip to extract .ISO Files
- Only 1 working HOT 1
- Extracting files into a path named after the file
- Get error at unrar
- Unnrar from subfolders and rename extracted file to parent folder name HOT 1
- .zip support HOT 1
- line 45 - grep HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unrarall.