support for "virtual" file metadata changes #1031
-
Admittedly, this might come across as a strange goal. I am accessing a ZIP object (over https) via an fsspec filesystem that contains a number of CSV files. I would ideally like to rename/mv/move these contained CSVs within the scope of the session, but then have no attempt made to persist those changes beyond the fsspec session. In essence, I'm hoping to create a view with different file metadata on top of an existing ZIP file, for the open session only and without change to the original. Is anything like this contemplated/possible in fsspec? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
The ZIP filesystem doesn't allow for this kind of thing, but maybe you could look into ReferenceFileSystem, which maps files on any filesystem backend (including ZIP) to arbitrarily map filesystem names to targets. |
Beta Was this translation helpful? Give feedback.
-
Thank you!
Separately, I wondered whether starting a transaction that never completes
might attempt to defer the changes. Would that be the best way to try to
use ReferenceFileSystem in this way?
…On Wed, Aug 31, 2022 at 10:35 AM Martin Durant ***@***.***> wrote:
The ZIP filesystem doesn't allow for this kind of thing, but maybe you
could look into ReferenceFileSystem, which maps files on any filesystem
backend (including ZIP) to arbitrarily map filesystem names to targets.
—
Reply to this email directly, view it on GitHub
<#1031 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AESZP3FHUCYEM7OTPJ2BQPLV35USPANCNFSM6AAAAAAQBKEOPE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
The specification for the references is here: https://fsspec.github.io/kerchunk/spec.html |
Beta Was this translation helpful? Give feedback.
The ZIP filesystem doesn't allow for this kind of thing, but maybe you could look into ReferenceFileSystem, which maps files on any filesystem backend (including ZIP) to arbitrarily map filesystem names to targets.