From f84c288852ba43db56729bda33ada39c7b996d05 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Mon, 23 Mar 2020 01:14:55 -0700 Subject: [PATCH] purge --- weed/server/webdav_server.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/weed/server/webdav_server.go b/weed/server/webdav_server.go index 4acff454b..fb0526b97 100644 --- a/weed/server/webdav_server.go +++ b/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)