1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-06 00:03:32 +00:00

s3, googlecloudstorage, azureblob: fix encoding issue with dir path comparison

`remote` has been converted ToStandardPath a few lines above, so `directory`
needs to be converted the same way in order to be compared properly. This was
spotted on `TestBisyncRemoteRemote/extended_filenames` for
`TestS3,directory_markers:` and `TestGoogleCloudStorage,directory_markers:`
which tripped over a directory name containing a Line Feed symbol.
This commit is contained in:
nielash
2024-04-29 03:21:49 -04:00
committed by Nick Craig-Wood
parent 003f4531fe
commit 862d5d6086
3 changed files with 3 additions and 3 deletions

View File

@@ -4065,7 +4065,7 @@ func (f *Fs) list(ctx context.Context, opt listOpt, fn listFn) error {
isDirectory = false
} else {
// Don't insert the root directory
if remote == opt.directory {
if remote == f.opt.Enc.ToStandardPath(opt.directory) {
continue
}
}