webdav: add DELETE support to server

This commit is contained in:
Simon Ser
2020-01-21 21:46:01 +01:00
parent 69f88b075a
commit 41b68829e8
5 changed files with 51 additions and 17 deletions

View File

@@ -61,4 +61,12 @@ func (fs LocalFileSystem) Create(name string) (io.WriteCloser, error) {
return os.Create(p)
}
func (fs LocalFileSystem) RemoveAll(name string) error {
p, err := fs.path(name)
if err != nil {
return err
}
return os.RemoveAll(p)
}
var _ FileSystem = LocalFileSystem("")