Skip to content

Remove IsDir from ipfs object #907

Closed
@jbenet

Description

@jbenet

currently ipfs object has an IsDir portion:

> ipfs object get QmWNj1pTSjbauDHpdyg5HQ26vYcNWnubg1JehmwAE9NnU9
{
  "Links": [
    {
      "Name": "",
      "Hash": "QmPHPs1P3JaWi53q5qqiNauPhiTqa3S1mbszcVPHKGNWRh",
      "Size": 262158,
      "IsDir": false
    },
    {
      "Name": "",
      "Hash": "QmPCuqUTNb21VDqtp5b8VsNzKEMtUsZCCVsEUBrjhERRSR",
      "Size": 262158,
      "IsDir": false
    },
    {
      "Name": "",
      "Hash": "QmS7zrNSHEt5GpcaKrwdbnv1nckBreUxWnLaV4qivjaNr3",
      "Size": 262158,
      "IsDir": false
    },
    {
      "Name": "",
      "Hash": "QmQQhY1syuqo9Sq6wLFAupHBEeqfB8jNnzYUSgZGARJrYa",
      "Size": 76151,
      "IsDir": false
    }
  ],
  "Data": "\u0008\u0002\u0018��4 ��\u0010 ��\u0010 ��\u0010 ��\u0004"
}

ipfs object is a plumbing command for the merkledag. it must not be aware of (or make assumptions about) datastructures on top, like unixfs. IsDir is unixfs specific. An ipfs unix (or maybe ipfs files) command is planned that will be unixfs specific. IsDir this belongs there, not here.

Sorry @cryptix -- this is my fault for doing lousy CR :( -- i should've explained this then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions