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

feat: adds metadata to unixfs #36

Merged
merged 1 commit into from
Nov 18, 2019
Merged

feat: adds metadata to unixfs #36

merged 1 commit into from
Nov 18, 2019

Conversation

achingbrain
Copy link
Member

Adds two new fields mtime and mode in line with the unixfs spec.

One possible wart here is that mtime is implemented as a JavaScript number which means it can't hold the full value of int64 so cannot represent dates in the far future.

This should be addressed by UnixFSv2 which should hopefully arrive before we top out Number.MAX_SAFE_INTEGER - e.g. early June 2255.

Adds two new fields `mtime` and `mode` in line with the unixfs spec.

One possible wart here is that `mtime` is implemented as a JavaScript
number which means it can't hold the full value of `int64` so cannot
represent dates in the far future.

This should be addressed by UnixFSv2 which should hopefully arrive
before we top out `Number.MAX_SAFE_INTEGER` - e.g. early June 2255.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants