mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 15:11:56 +01:00
fstest: fix upwrapping tests for bucket based remotes
TestIntegration/FsRmdirNotFound was failing on crypt wrapping a bucket based remote. This was spotted by the integration tests.
This commit is contained in:
parent
3f0d54daae
commit
e2816629d0
@ -335,7 +335,8 @@ func Run(t *testing.T, opt *Opt) {
|
||||
// Return true if f (or any of the things it wraps) is bucket
|
||||
// based but not at the root.
|
||||
isBucketBasedButNotRoot := func(f fs.Fs) bool {
|
||||
return fs.UnWrapFs(f).Features().BucketBased && strings.Contains(strings.Trim(f.Root(), "/"), "/")
|
||||
f = fs.UnWrapFs(f)
|
||||
return f.Features().BucketBased && strings.Contains(strings.Trim(f.Root(), "/"), "/")
|
||||
}
|
||||
|
||||
// Initialise the remote
|
||||
|
Loading…
Reference in New Issue
Block a user