Skip to content

Follow symbolic links in DirectoryStore #298

Closed as not planned
Closed as not planned

Description

@alimanfoo

Not sure if this is possible or how easy to implement, but it might be convenient if DirectoryStore followed symbolic links, allowing symlinks to be used to create cross-links within a hierarchy, or to link between different stores (e.g., to create different views of data within a store).

xref #297

Activity

  1. jakirkham commented on Sep 4, 2018

    @jakirkham
    Member

    How would we handle this in other stores?

  2. alimanfoo commented on Sep 4, 2018

    @alimanfoo
    MemberAuthor

    I think it's only relevant to DirectoryStore and NestedDirectoryStore as these expose the hierarchy as a directory structure, so symlinks to directories provides a means to do some useful things. Not sure symlinks would be useful or make any sense for other stores.

  3. jakirkham commented on Sep 13, 2018

    @jakirkham
    Member

    Guess I was imagining them being some text with a path. Though this really depends on whether links are first class objects (like how they are in HDF5).

    This might also come up if a user converts between two different types of stores.

  4. jakirkham commented on Jan 4, 2019

    @jakirkham
    Member

    FWIW another use case for links (as well as object and region references) is NWB where they want to reference data in multiple places. They actually started implementing something on top of Zarr, but the lack of these features was a blocker for them.

    xref: NeurodataWithoutBorders/pynwb#230 (comment)

  5. alimanfoo commented on Jan 4, 2019

    @alimanfoo
    MemberAuthor
  6. jakirkham commented on Jan 12, 2019

    @jakirkham
    Member

    Sure. Have raised issue ( #389 ).

  7. added
    enhancement
    on Dec 12, 2024
  8. d-v-b commented on Jul 7, 2026

    @d-v-b
    Contributor

    today the file system store makes no promises about how symlinks are handled. if we did naively follow symlinks, we could create topological abominations, e.g. a group that contains its ancestors. handling this would add considerable complexity to the zarr data model, or the local file system store, all for something that has no analogue in cloud object storage. so I will close this as not planned.

    that being said, there are problems with how we handle symlinks today in the file system store that we should resolve. I will open issues for these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions