Comments (5)
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.
I very much like your suggestion about implicit extraction. Simple and effective
from archive.
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.
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.
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
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 archive.