Skip to content

Test for existing directory #5

@observingClouds

Description

@observingClouds

Currently the exists method is not working as expected on directories. Swift does not have actual directories, but it would be great if the following would work:

Failing minimal example

import fsspec
fs = fsspec.filesystem("swift")
fs.lexists("swift://swift.dkrz.de/dkrz_948e7d4bbfbb445fbff5315fc433e36a/fsspec_test/bug01.zarr")

returns False although I expect it to return True.

On container-level and object-level the function returns as expected:

fs.lexists("swift://swift.dkrz.de/dkrz_948e7d4bbfbb445fbff5315fc433e36a/fsspec_test")
#True

fs.lexists("swift://swift.dkrz.de/dkrz_948e7d4bbfbb445fbff5315fc433e36a/fsspec_test/bug01.zarr/.zattrs")
#True

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions