mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 22:30:56 +03:00
gcs: improve error checking
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -420,7 +420,7 @@ func (*GCSFs) IsNotExist(err error) bool {
|
|||||||
if err == nil {
|
if err == nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if err == storage.ErrObjectNotExist || err == storage.ErrBucketNotExist {
|
if errors.Is(err, storage.ErrObjectNotExist) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
var apiErr *googleapi.Error
|
var apiErr *googleapi.Error
|
||||||
@@ -623,7 +623,7 @@ func (*GCSFs) Join(elem ...string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// HasVirtualFolders returns true if folders are emulated
|
// HasVirtualFolders returns true if folders are emulated
|
||||||
func (GCSFs) HasVirtualFolders() bool {
|
func (*GCSFs) HasVirtualFolders() bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user