Skip to content

Commit

Permalink
add: fix symlinks
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
  • Loading branch information
Stebalien committed Mar 23, 2019
1 parent 3f76a28 commit 831b765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/coreunix/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,10 @@ func (adder *Adder) Add(ctx context.Context, file files.Node) (ipld.Node, error)
err error
)
switch file := file.(type) {
case files.File:
nd, err = baseJob.addFile("", file)
case *files.Symlink:
nd, err = baseJob.addSymlink("", file)
case files.File:
nd, err = baseJob.addFile("", file)
case files.Directory:
job := newDirAdderJob(baseJob)

Expand Down

0 comments on commit 831b765

Please sign in to comment.