Skip to content

file ls command returning 0 size on requested hash #3232

Closed

Description

@dokterbob

Version information:

go-ipfs version: 0.4.3-rc4-
Repo version: 4
System version: amd64/linux
Golang version: go1.7

Type: bug

Priority: P4

Description:

When running ipfs file ls (NOT ipfs files ls), the resulting information on the requested hash (NOT the objects it links to) includes a size which is always 0. For example:
$ ipfs file ls --enc=json <hash>

{
    "Arguments": {
        "<hash1>": "<hash1>"
    },
    "Objects": {
        "<hash1>": {
            "Hash": "<hash1>",
            "Size": 0,
            "Type": "Directory",
            "Links": [<items>]
        }
    }
}

Note "Size" being 0.

Also note that this issue might become irrelevant depending on how listing commands will eventually be sorted out as part of #3056.

Activity

  1. added
    kind/bugA bug in existing code (including security flaws)
    status/deferredConscious decision to pause or backlog
    on Nov 28, 2016
  2. Stebalien commented on May 15, 2019

    @Stebalien
    Member

    Fixed (although it's still intentionally 0 for directories).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugA bug in existing code (including security flaws)status/deferredConscious decision to pause or backlog

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions