Giter Club home page Giter Club logo

Comments (5)

arfoll avatar arfoll commented on June 30, 2024

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.

delcypher avatar delcypher commented on June 30, 2024

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.

arfoll avatar arfoll commented on June 30, 2024

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.

delcypher avatar delcypher commented on June 30, 2024

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.

delcypher avatar delcypher commented on June 30, 2024

This is now being dealt with in the "Introduced clean-up hooks" issue ( #6 )

from unrarall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.