Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata support #2

Open
1 of 5 tasks
mgree opened this issue Jun 15, 2021 · 2 comments
Open
1 of 5 tasks

Metadata support #2

mgree opened this issue Jun 15, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@mgree
Copy link
Owner

mgree commented Jun 15, 2021

@mgree mgree added the enhancement New feature or request label Jun 15, 2021
@mgree mgree mentioned this issue Jun 22, 2021
@mgree
Copy link
Owner Author

mgree commented Jun 29, 2021

@mgree
Copy link
Owner Author

mgree commented Jun 30, 2021

Storing a file .__listdir in listlike directories seems simple to do.

I've been thinking of these as options one turns on or off... but why not have it all on by default, with ways to turn them off? xattr isn't for everyone.

mgree added a commit that referenced this issue Jul 2, 2021
Extended attributes in `user.type` track the type of files and directories. Users can update these to alter the metadata.

Loading files records types; serialization tries to use them (but will default to strings or bytes if it can't interpret the file appropriately).

In particular, it's now possible to convert between both kinds of directories (list and named).

This isn't a long term solution, because extended attributes have no real affordances---it's not obvious that they even exist, and even once you see `user.type`, it's obvious what it means or what values it has. #2 has other ideas about ways to represent and manipulate metadata.

All of this comes with a few new flags and some brittle file ignoring behavior (macOS will generate `._*` files to hold extended attributes on filesystems that don't support them). The man page is updated with detail on the data model, and now the manpage is part of the website proper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant