mirror of
https://github.com/drakkan/sftpgo.git
synced 2026-03-14 14:25:52 +01:00
gcs: improve error checking
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
parent
0c2a918b82
commit
0ce764e142
1 changed files with 2 additions and 2 deletions
|
|
@ -420,7 +420,7 @@ func (*GCSFs) IsNotExist(err error) bool {
|
|||
if err == nil {
|
||||
return false
|
||||
}
|
||||
if err == storage.ErrObjectNotExist || err == storage.ErrBucketNotExist {
|
||||
if errors.Is(err, storage.ErrObjectNotExist) {
|
||||
return true
|
||||
}
|
||||
var apiErr *googleapi.Error
|
||||
|
|
@ -623,7 +623,7 @@ func (*GCSFs) Join(elem ...string) string {
|
|||
}
|
||||
|
||||
// HasVirtualFolders returns true if folders are emulated
|
||||
func (GCSFs) HasVirtualFolders() bool {
|
||||
func (*GCSFs) HasVirtualFolders() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue