more work done
This commit is contained in:
parent
de359ab415
commit
abc6159044
24 changed files with 309 additions and 230 deletions
|
|
@ -56,7 +56,7 @@ func (fs *Filesystem) Delete(path string) (removed []string, err error) {
|
|||
if fullpath == fs.Base {
|
||||
return nil, errors.New("the root path can not be deleted")
|
||||
}
|
||||
fi, err := os.Stat(path)
|
||||
fi, err := os.Stat(fullpath)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,5 +116,8 @@ func Paths(path string) (p core.Paths) {
|
|||
}
|
||||
p = append(p, core.Path{Name: v, Abs: filepath.Join(p[i-1].Abs, v)})
|
||||
}
|
||||
if len(p) != 0 {
|
||||
p[len(p)-1].Indexed = true
|
||||
}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue