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
Copy file name to clipboardExpand all lines: SPEC/FILES.md
+32-10Lines changed: 32 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
> The files API enables users to use the File System abstraction of IPFS. There are two Files API, one at the top level, the original `add`, `cat`, `get` and `ls`, and another behind the [`files`, also known as MFS](https://github.com/ipfs/specs/issues/98). [We are currently going through a revamping process of these APIs to make them more user-friendly](https://github.com/ipfs/interface-ipfs-core/issues/284).
4
4
5
-
#### The Regular API
5
+
#### The Regular API
6
6
The regular, top-level API for add, cat, get and ls Files on IPFS
7
7
-[add](#add)
8
8
-[addFromFs](#addfromfs)
@@ -19,8 +19,8 @@ The regular, top-level API for add, cat, get and ls Files on IPFS
19
19
-[ls](#ls)
20
20
-[lsPullStream](#lspullstream)
21
21
-[lsReadableStream](#lsreadablestream)
22
-
23
-
#### The Files API
22
+
23
+
#### The Files API
24
24
The Files API, aka MFS (Mutable File System)
25
25
26
26
_Explore the Mutable File System through interactive coding challenges in our [ProtoSchool tutorial](https://proto.school/#/mutable-file-system/)._
@@ -700,6 +700,7 @@ Where:
700
700
-`from` is the path(s) of the source to copy. It might be:
701
701
- An existing MFS path to a file or a directory (e.g. `/my-dir/my-file.txt`)
702
702
- An IPFS path (e.g. `/ipfs/QmWGeRAEgtsHW3ec7U4qW2CyVy7eA2mFRVbk1nb24jFyks`)
703
+
- A [CID][cid] instance (e.g. `new CID('QmWGeRAEgtsHW3ec7U4qW2CyVy7eA2mFRVbk1nb24jFyks')`)
703
704
-`to` is the path of the destination to copy to
704
705
-`options` is an optional Object that might contain the following keys:
705
706
-`parents` is a Boolean value to decide whether or not to make the parent directories if they don't exist (default: false)
0 commit comments