STOP and READUSE THIS TEMPLATENO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.
What is the problem you are having with rclone?
When I use the fs api to list files under buckets in other region, I get an empty directory instead of an error. (I expected to get BucketRegionError)
The following code will ignore 301 errors. Why should 301 be treated specially?
Run the command 'rclone version' and share the full output of the command.
None.
Which cloud storage system are you using? (eg Google Drive)
AWS S3
The command you were trying to run (eg rclone copy /tmp remote:tmp)
None.
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
None.
A log from the command that you were trying to run with the -vv flag
Thanks for your reply. I don't use the rclone command line. I develop my own application using the file system api provided by rclone.
The key code looks like this:
fs, err := fs.NewFs(ctx, "s3:")
checkErr(err)
fs1 := vfs.New(fs, nil)
dirs, err = fs1.ReadDir("/bucket-in-other-region")
assertIsBucketRegionError(err) // but here err is nil and `dirs` is empty (in fact, there are files in `bucket-in-other-region`,)