Open mpiannucci opened 4 months ago
Hm, I'm not entirely sure what that line does now - I suppose this is specific to filesystem-on-filesystem situations (as opposed to filesystem-on-file, like ZIP or explicit remote kwargs like referenceFS). I am open to suggestions! By this point, we do have access to the filesystem class cls
, so special cases like the three listed could instead be makred with a class attribute.
Yeha so that line is only relevant to filesystem on filesystems. When one of those cache impls is the name of the filesystem it passes the path through, but otherwise it strips it out.
I'm happy to see any solution to this you think appropriate.
I am creating a custom redis caching filesystem and I found that opening a file with a custom string does not work because of this hardcoded sequence https://github.com/fsspec/filesystem_spec/blob/0bb3f26c412d7ad9b2d52a5c32265014709d1c1f/fsspec/core.py#L352 :
Is there a way to work through this without forking fsspec? I am have registered my class and am trying to open like this:
Opening through the filesystem works fine. Thank you for any help you can give!