Comments (3)
It appears hard links don't require admin rights: https://github.com/npm/fstream/blob/master/lib/link-writer.js#L34
from decompress.
@marcelklehr, could you try running from master
and see if that fixes your issue?
from decompress.
Hey folks! I've hit an issue that I believe is related to this. Given a ZIP that contains a directory symlink, decompress
on Windows will try recreating it as a hardlink. This will fail, because hardlinks don't support linking between directories. Symlinks do, though!
What do you think about only using hardlinks as a fallback if the symlink fails, e.g. because of missing admin permissions?
Kinda like this:
if (x.type === 'symlink') {
return fsP.symlink(x.linkname, dest).catch((err) => {
if (process.platform === 'win32' && err is because of missing admin permissions) {
fsP.link(dest, path.join(dest, "..", x.linkname))
}
throw err
});
}
Happy to provide a PR if you think something like this is viable.
from decompress.
Related Issues (20)
- Vulnerable to Infinite Loop via malformed MKV file through `file-type` package HOT 4
- Obsolete (pre 0.9.5) bzip format not supported.
- Error: EISDIR illegal operation on a directory, open '{path to a dir in the zip file}' HOT 3
- Suggestion: Add clarification regarding output directory, use "./" for same folder
- Install CLI doesn't work on Windows environment
- Dependency decompress-tar is a vulnerability HOT 1
- Specific uscase error: empty dir in zip archive HOT 1
- Ąaa
- .
- .
- Use decompress in lambda function HOT 1
- Can we have flag for ignore hidden folders like __MACOSX
- Error: `Uncaught (in promise) Error: absolute path: /` HOT 1
- Option to bound memory usage HOT 1
- There is garbled code when decompressing the Chinese directory. What should I do?
- ENOENT while extracting an tar with hardlinks HOT 2
- Unable to decrompress archive containing folders (compressed with 7zip) HOT 3
- Unzip a password protected zip file HOT 2
- CVE-2020-12265, There is no fixed version for decompress-tar, how to prove there is no issure for decompress-4.2.1? HOT 2
- decompress function is stucked when i pass the buffer array into it
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 decompress.