Stat() on a URL shouldn't fail, just treat as a regular directory
This commit is contained in:
+1
-1
@@ -183,8 +183,8 @@ func (c *s3Client) Stat() (*client.Content, *probe.Error) {
|
||||
if bucket.Err != nil {
|
||||
return nil, probe.NewError(bucket.Err)
|
||||
}
|
||||
return &client.Content{Type: os.ModeDir}, nil
|
||||
}
|
||||
return &client.Content{Type: os.ModeDir}, nil
|
||||
}
|
||||
if object != "" {
|
||||
metadata, err := c.api.StatObject(bucket, object)
|
||||
|
||||
Reference in New Issue
Block a user