Skip to content

Commit

Permalink
Merge pull request #121 from overbool/fix/ipfs-#5456
Browse files Browse the repository at this point in the history
fix(add): refer to ipfs issue #5456
  • Loading branch information
Stebalien authored Sep 19, 2018
2 parents 678a25a + dfd79a5 commit d954e86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ const notRecursiveFmtStr = "'%s' is a directory, use the '-%s' flag to specify d
const dirNotSupportedFmtStr = "Invalid path '%s', argument '%s' does not support directories"

func appendFile(fpath string, argDef *cmdkit.Argument, recursive, hidden bool) (files.File, error) {
fpath = filepath.ToSlash(filepath.Clean(fpath))
if fpath == "." {
cwd, err := os.Getwd()
if err != nil {
Expand All @@ -468,8 +469,6 @@ func appendFile(fpath string, argDef *cmdkit.Argument, recursive, hidden bool) (
fpath = cwd
}

fpath = filepath.ToSlash(filepath.Clean(fpath))

stat, err := os.Lstat(fpath)
if err != nil {
return nil, err
Expand Down

0 comments on commit d954e86

Please sign in to comment.