Code Monkey home page Code Monkey logo

Comments (3)

mholt avatar mholt commented on June 10, 2024

Ah, this might have something to do with the fact that zip archives don't seem to natively support symlinks. The tar headers do accept the symlink targets, but zip does not.

Apparently the zip command has a --symlinks option that does preserve them, to an extent, but with caveats: https://askubuntu.com/questions/1203925/using-zip-command-to-transfer-ubuntu-folders-with-symbol-links-in-them-to-window

Short answer: you can't [preserve symlinks] unless 1) the receiving file system supports linux symbolic links and 2) the target files/folders of the link are present

Thanks for setting up a reproducer. I'm just quickly triaging my backlog right now. Could you tell me if the error happens with tar archives too?

Anyway, the error shouldn't happen, I agree, I'm just trying to make sure I understand it well enough to make the right fix.

from archiver.

donatj avatar donatj commented on June 10, 2024

.tar.gz does appear to work as expected.

the target files/folders of the link are present

Hmm, interesting. This does seem to be the case, but it just silently skips them. That'sā€¦ terrible.

image

For what it's worth, the macOS compression utility is able to store them fine.

Screen.Recording.2024-01-11.at.12.03.31.PM.mov

Which created - which the cli unzip command doesn't even have an issue with

image

from archiver.

mholt avatar mholt commented on June 10, 2024

Thanks; I agree something should be fixed, just not quite sure how yet. The ZIP file header doesn't seem to support symlink information, so I'm not sure how to archive the link? I can see how we can dereference the symlink and archive the target file, but not the symlink.

from archiver.

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.