mirror of
https://github.com/rclone/rclone.git
synced 2024-11-26 18:31:17 +08:00
b2: fix app key support on upload to a bucket - fixes #2428
This commit is contained in:
parent
41f709e13b
commit
7c911bf2d6
|
@ -318,6 +318,11 @@ func NewFs(name, root string, m configmap.Mapper) (fs.Fs, error) {
|
|||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to authorize account")
|
||||
}
|
||||
// If this is a key limited to a single bucket, it must exist already
|
||||
if f.bucket != "" && f.info.Allowed.BucketID != "" {
|
||||
f.markBucketOK()
|
||||
f.setBucketID(f.info.Allowed.BucketID)
|
||||
}
|
||||
if f.root != "" {
|
||||
f.root += "/"
|
||||
// Check to see if the (bucket,directory) is actually an existing file
|
||||
|
|
Loading…
Reference in New Issue
Block a user