Skip to content

Commit

Permalink
use file fullpath to judge file name
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Kejie Zhang <601172892@qq.com>
  • Loading branch information
kjzz committed Sep 5, 2018
1 parent 19e3c12 commit 5433eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/coreunix/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ func (adder *Adder) addFile(file files.File) error {
}

addFileName := file.FileName()
if addFileName == "" && adder.Name != "" {
if file.FullPath() == "" && adder.Name != ""{
addFileName = adder.Name
adder.Name = ""
}
Expand Down

0 comments on commit 5433eea

Please sign in to comment.