Browse Source

purge

pull/1255/head
Chris Lu 5 years ago
parent
commit
f84c288852
  1. 5
      weed/server/webdav_server.go

5
weed/server/webdav_server.go

@ -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…
Cancel
Save