add setstat_mode 2

in this mode chmod/chtimes/chown can be silently ignored only for cloud
based file systems

Fixes #223
This commit is contained in:
Nicola Murino
2020-11-12 10:39:46 +01:00
parent 38e0cba675
commit 5720d40fee
13 changed files with 117 additions and 56 deletions

View File

@@ -46,6 +46,7 @@ type Fs interface {
ResolvePath(sftpPath string) (string, error)
IsNotExist(err error) bool
IsPermission(err error) bool
IsNotSupported(err error) bool
ScanRootDirContents() (int, int64, error)
GetDirSize(dirname string) (int, int64, error)
GetAtomicUploadPath(name string) string
@@ -56,7 +57,7 @@ type Fs interface {
GetMimeType(name string) (string, error)
}
var errUnsupported = errors.New("Not supported")
var ErrVfsUnsupported = errors.New("Not supported")
// QuotaCheckResult defines the result for a quota check
type QuotaCheckResult struct {