You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
shell/fsnode: Add a high-level filesystem-node package
Starting to use the core/... (low-level, all the knobs you need)
shell/... (high-level, handle the common case easily) disctinction
laid out in [1].
Creating a file node from a reader is hard to do right, because
there's a lot of filesystem metadata that we don't have access to
(access mode, ownership, etc.). You can guess at those based on the
adding process's umask, effective user, etc., but figuring out what
you want guessed at or what you want set explicitly, or whether you
want wrapping metadata at all is complicated. This function isn't
going to do any of that [2], it's just a high-level wrapper to create
a minimal file object with the default chunking, pinning, etc. all
taken care of in ways that will probably work for you ;).
[1]: ipfs#1158
[2]: ipfs#1136 (comment)
0 commit comments