mgree / ffs

the file filesystem: mount semi-structured data (like JSON) as a Unix filesystem
https://mgree.github.io/ffs/
GNU General Public License v3.0
463 stars 14 forks source link

Name munging is never undone #29

Closed mgree closed 3 years ago

mgree commented 3 years ago

The JSON object { ".": 5 } will create a file named dot holding the number 5... but it will dump back to JSON without restoring the name.

The best solution is probably to track an "unmunged" name, and files that don't undergo a rename call go back exactly how they were.

This unmunged name is metadata, so the appropriate mechanism for working with it is up in the air (see #2).

mgree commented 3 years ago

fad45bed4ba3e84a7ed4dd9552b551eaac541632 introduces a (more or less hidden) way to ignore files when serializing the FS back (really, to be able to ignore ._* files on macOS). Related but not identical to name munging.