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

lsjson: explain the Path value in the docs

Fabian Möller3c7a7556312f
diff --git a/cmd/lsjson/lsjson.go b/cmd/lsjson/lsjson.go
index ed739ada9..02190e4b8 100644
--- a/cmd/lsjson/lsjson.go
+++ b/cmd/lsjson/lsjson.go
@@ -75,6 +75,11 @@ If --hash is not specified the the Hashes property won't be emitted.
If --no-modtime is specified then ModTime will be blank.
+The Path field will only show folders below the remote path being listed.
+If "remote:path" contains the file "subfolder/file.txt", the Path for "file.txt"
+will be "subfolder/file.txt", not "remote:path/subfolder/file.txt".
+When used without --recursive the Path will always be the same as Name.
+
The time is in RFC3339 format with nanosecond precision.
The whole output can be processed as a JSON blob, or alternatively it