Skip to content

Commit

Permalink
swarm/fuse: ignore default manifest entry (ethereum#792)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aron committed Jul 17, 2018
1 parent 872defc commit cba0f4a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions swarm/fuse/swarmfs_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ func (swarmfs *SwarmFS) Mount(mhash, mountpoint string) (*MountInfo, error) {

log.Trace("swarmfs mount: traversing manifest map")
for suffix, entry := range manifestEntryMap {
if suffix == "" { //empty suffix means that the file has no name - i.e. this is the default entry in a manifest. Since we cannot have files without a name, let us ignore this entry
log.Warn("Manifest has an empty-path (default) entry which will be ignored in FUSE mount."))
continue
}
addr := common.Hex2Bytes(entry.Hash)
fullpath := "/" + suffix
basepath := filepath.Dir(fullpath)
Expand Down

0 comments on commit cba0f4a

Please sign in to comment.