Giter Site home page Giter Site logo

Unarchive output directory about archive HOT 5 CLOSED

zimfw avatar zimfw commented on May 28, 2024
Unarchive output directory

from archive.

Comments (5)

ericbn avatar ericbn commented on May 28, 2024

Good point. I'm just worried on how this could conflict with existing parameters for each tool. Maybe instead of taking a parameter, it could always do the following: if the archive only contains one file or root directory, then extract the archive to the current directory, otherwise extract it into a subdirectory with the archive name.

Or maybe we need to explore the options that each of the tools used offer to come up with a uniform solution. @Eriner, thoughts?

from archive.

mversic avatar mversic commented on May 28, 2024

I very much like your suggestion about implicit extraction. Simple and effective

from archive.

ericbn avatar ericbn commented on May 28, 2024

Taking a better look into this, I think it goes beyond the scope of the unarchive script. If you need a tool that is smarter in terms of creating subdirectories or not, you'll need something more complex. In macOS, I use The Unarchiver for such tasks.

from archive.

mversic avatar mversic commented on May 28, 2024

ok, too bad. I think it would have made life a little bit easier for the users of the zimfw/archive. So my options remain to either always unarchive inside of an empty directory or inspect the contents of the archive before unarchiving.

from archive.

ericbn avatar ericbn commented on May 28, 2024

Inspecting the archive before unarchiving can be a way to go. Prezto added an lsarchive function for that, which sounds like a good idea to implement here too.

from archive.

Related Issues (2)

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.