mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-07 23:00:55 +03:00
10
vfs/gcsfs.go
10
vfs/gcsfs.go
@@ -402,6 +402,16 @@ func (GCSFs) IsPermission(err error) bool {
|
||||
return strings.Contains(err.Error(), "403")
|
||||
}
|
||||
|
||||
// GetPermissionError returns a permission error for this FS
|
||||
func (GCSFs) GetPermissionError() error {
|
||||
return errors.New("403 permission denied")
|
||||
}
|
||||
|
||||
// GetNotExistError returns a not exist error for this FS
|
||||
func (GCSFs) GetNotExistError() error {
|
||||
return errors.New("404 no such file or directory")
|
||||
}
|
||||
|
||||
// CheckRootPath creates the specified local root directory if it does not exists
|
||||
func (fs GCSFs) CheckRootPath(username string, uid int, gid int) bool {
|
||||
// we need a local directory for temporary files
|
||||
|
||||
Reference in New Issue
Block a user