Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing ability to specify custom destination path when extracting file by file. #5

Open
mafiosso opened this issue Oct 8, 2020 · 2 comments

Comments

@mafiosso
Copy link

mafiosso commented Oct 8, 2020

Hi, thank you for this great project! Currently I am writing custom module for node.js. I would like to use you library to make a stream of extracted files - currently I do this via lsar & unar. However files in my .zip (or in other archives) files may have very long names (longer than OS limits) sometimes or broken/mixed encoding. In these cases I would like to extract the "broken-name" files to my custom destinations (e.g. custom ID, hash etc.). I can not find a way how to do this via unar but when looking to your codes it should be possible to change destination relatively easily - but I am not very skilled in Objective-C.

I suppose it would be a good functionality for others as well.

@ashang
Copy link
Owner

ashang commented Aug 1, 2022

Seems this worked fine.

$ unar -o new-dir /path/to/archive

Do you have example archives with very long names?

@mafiosso
Copy link
Author

mafiosso commented Aug 1, 2022

The main problem was no possibility to extract items one by one specified by ID to a custom path - this solves problems with too long paths and gives possibility to extract in parallel and fix path encoding problems in right place.

I forked XADMaster and added this functionality - which is crucial for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants