Merge pull request #20 from stephen679/validate_correct_path

check: recognize correct path
This commit is contained in:
Vincent Batts 2016-07-15 11:34:32 +09:00 committed by GitHub
commit a29236e678

View file

@ -50,7 +50,7 @@ func Check(root string, dh *DirectoryHierarchy, keywords []string) (*Result, err
creator.curSet = nil creator.curSet = nil
} }
case RelativeType, FullType: case RelativeType, FullType:
info, err := os.Lstat(filepath.Join(root, e.Path())) info, err := os.Lstat(e.Path())
if err != nil { if err != nil {
return nil, err return nil, err
} }