mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
purge
This commit is contained in:
parent
a5aa8be19b
commit
f84c288852
|
@ -249,11 +249,6 @@ func (fs *WebDavFileSystem) removeAll(ctx context.Context, fullFilePath string)
|
|||
return err
|
||||
}
|
||||
|
||||
if fi.IsDir() {
|
||||
//_, err = fs.db.Exec(`delete from filesystem where fullFilePath like $1 escape '\'`, strings.Replace(fullFilePath, `%`, `\%`, -1)+`%`)
|
||||
} else {
|
||||
//_, err = fs.db.Exec(`delete from filesystem where fullFilePath = ?`, fullFilePath)
|
||||
}
|
||||
dir, name := util.FullPath(fullFilePath).DirAndName()
|
||||
|
||||
return filer_pb.Remove(fs, dir, name, true, true, true)
|
||||
|
|
Loading…
Reference in a new issue