Skip to content

Commit 738f586

Browse files
committed
fix(add): refer to ipfs issue #5456
License: MIT Signed-off-by: Overbool <overbool.xu@gmail.com>
1 parent 6aaaa76 commit 738f586

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cli/parse.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,8 @@ const notRecursiveFmtStr = "'%s' is a directory, use the '-%s' flag to specify d
456456
const dirNotSupportedFmtStr = "Invalid path '%s', argument '%s' does not support directories"
457457

458458
func appendFile(fpath string, argDef *cmdkit.Argument, recursive, hidden bool) (files.File, error) {
459-
if fpath == "." {
459+
fpath = filepath.Clean(fpath)
460+
if fpath == "."{
460461
cwd, err := os.Getwd()
461462
if err != nil {
462463
return nil, err

0 commit comments

Comments
 (0)