Cloud FS: don't propagate the error if removing a folder returns not found

for Cloud FS the folders are virtual and they, generally, disappear when the
last file is removed.

This fix doesn't work for FTP protocol for now.

Fixes #149
This commit is contained in:
Nicola Murino
2020-07-31 19:24:57 +02:00
parent 22338ed478
commit 2a9f7db1e2
9 changed files with 127 additions and 43 deletions

View File

@@ -44,6 +44,7 @@ type Fs interface {
GetRelativePath(name string) string
Walk(root string, walkFn filepath.WalkFunc) error
Join(elem ...string) string
HasVirtualFolders() bool
}
var errUnsupported = errors.New("Not supported")