From f96fc5a44886256b6974ce75043517e37d738d02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Z=C3=A9=20Bateira?= Date: Mon, 23 Mar 2020 15:34:56 +0000 Subject: [PATCH] docs(ipfs.files.ls): type is a number Each object contains a property `type` which is a `number`, not a string. 0-file 1-directory --- packages/interface-ipfs-core/SPEC/FILES.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/interface-ipfs-core/SPEC/FILES.md b/packages/interface-ipfs-core/SPEC/FILES.md index 3073956950..176d1cfe24 100644 --- a/packages/interface-ipfs-core/SPEC/FILES.md +++ b/packages/interface-ipfs-core/SPEC/FILES.md @@ -753,7 +753,7 @@ Where: Each object contains the following keys: - `name` which is the file's name -- `type` which is the object's type (`directory` or `file`) +- `type` which is the object's type (`0` for files or `1` for directories) - `size` the size of the file in bytes - `cid` the hash of the file (A [CID][cid] instance) - `mode` the UnixFS mode as a Number