kubo/core
W. Trevor King 663f37cb99 core/commands/unixfs/ls: Don't recurse into chunked files
Folks operating at the Unix-filesystem level shouldn't care about that
level of Merkle-DAG detail.  Before this commit we had:

  $ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
  /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox:
  ... several lines of empty-string names ...

And with this commit we have:

  $ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
  /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox

I also reworked the argument-prefixing (object.Argument) in the output
marshaller to avoid redundancies like:

  $ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
  /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox:
  /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox

As a side-effect of this rework, we no longer have the trailing blank
line that we used to have after the final directory listing.

The new ErrImplementation is like Python's NotImplementedError, and is
mostly a way to guard against external changes that would need
associated updates in this code.  For example, once we see something
that's neither a file nor a directory, we'll have to update the switch
statement to handle those objects.

License: MIT
Signed-off-by: W. Trevor King <wking@tremily.us>
2015-06-13 13:06:34 -07:00
..
commands core/commands/unixfs/ls: Don't recurse into chunked files 2015-06-13 13:06:34 -07:00
corehttp http endpoints: dont print before listen 2015-06-08 10:56:05 +02:00
corenet Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
corerepo move util.Key into its own package under blocks 2015-06-01 16:10:08 -07:00
corerouting Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
coreunix move util.Key into its own package under blocks 2015-06-01 16:10:08 -07:00
mock remove testing imports from non testing code 2015-05-31 15:41:59 -07:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
bootstrap_test.go Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
bootstrap.go core: bugfix: bootstrap random permutation 2015-04-20 06:00:42 -07:00
builder.go make the default repo for corebuilder work 2015-06-03 16:06:15 -07:00
core_test.go Run 'gofmt -s -w' on these files 2015-05-19 06:11:15 +07:00
core.go core/core: Refer back to the main go-ipfs docs 2015-05-02 08:18:08 -07:00
pathresolver_test.go remove testing imports from non testing code 2015-05-31 15:41:59 -07:00
pathresolver.go Named error for no components 2015-05-22 09:18:49 -07:00