Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

operations: fix lsjson --encrypted when using --crypt-XXX parameters

Nick Craig-Wood0735f44f910c
diff --git a/fs/operations/lsjson.go b/fs/operations/lsjson.go
index e95984809..94d405e2f 100644
--- a/fs/operations/lsjson.go
+++ b/fs/operations/lsjson.go
@@ -119,7 +119,7 @@ func newListJSON(ctx context.Context, fsrc fs.Fs, remote string, opt *ListJSONOp
lj.dirs = false
}
if opt.ShowEncrypted {
- fsInfo, _, _, config, err := fs.ConfigFs(fsrc.Name() + ":" + fsrc.Root())
+ fsInfo, _, _, config, err := fs.ConfigFs(fs.ConfigStringFull(fsrc))
if err != nil {
return nil, fmt.Errorf("ListJSON failed to load config for crypt remote: %w", err)
}