mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-25 17:45:39 +00:00
Merge pull request #20 from stephen679/validate_correct_path
check: recognize correct path
This commit is contained in:
commit
a29236e678
1 changed files with 1 additions and 1 deletions
2
check.go
2
check.go
|
@ -50,7 +50,7 @@ func Check(root string, dh *DirectoryHierarchy, keywords []string) (*Result, err
|
|||
creator.curSet = nil
|
||||
}
|
||||
case RelativeType, FullType:
|
||||
info, err := os.Lstat(filepath.Join(root, e.Path()))
|
||||
info, err := os.Lstat(e.Path())
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue