Code Monkey home page Code Monkey logo

Comments (2)

yadutaf avatar yadutaf commented on May 28, 2024

Out of curiosity, is it a standard way to deal with links in Swift?

from svfs.

xlucas avatar xlucas commented on May 28, 2024

As for now, there's no standard in Swift to handle symlinks.

AFAIK there is a spec being reviewed that claims to bring full symlink support. It proposes handling symlinks as 0 byte objects containing a X-Object-Symlink-Target-Object header and ensure operation consistency between symlinks and referenced objects.

In the meantime, one could use Swift manifests, but they aren't true symlinks : operations on a manifest don't work the same way than they would do on referenced object. For instance, let's say you created an object which is a directory. If you create a manifest referencing this object and send a GET request on this one, then you will not get the list of objects in this directory as a result, but the content of all files that are inside, because manifests reassemble referenced objects. An other problem lays in object metadata that should be copied to the manifest with obviously the requirement to synchronize these when they change. Such an implementation would be unsuitable I believe since coming up with usage quirks outside svfs.

We take the choice here to make symlinks unusable outside svfs, since that's what they truly are.

from svfs.

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.