mirror of
https://github.com/rclone/rclone.git
synced 2025-12-06 00:03:32 +00:00
lsjson: add --metadata/-M flag
Note that this removes the `-M` flag from `--encrypted` as it conflicted with the global flag and adds it to `--metadata`.
This commit is contained in:
@@ -172,6 +172,19 @@ func TestListJSON(t *testing.T) {
|
||||
ModTime: operations.Timestamp{When: t1},
|
||||
IsDir: false,
|
||||
}},
|
||||
}, {
|
||||
name: "Metadata",
|
||||
opt: operations.ListJSONOpt{
|
||||
FilesOnly: true,
|
||||
Metadata: true,
|
||||
},
|
||||
want: []*operations.ListJSONItem{{
|
||||
Path: "file1",
|
||||
Name: "file1",
|
||||
Size: 5,
|
||||
ModTime: operations.Timestamp{When: t1},
|
||||
IsDir: false,
|
||||
}},
|
||||
},
|
||||
} {
|
||||
t.Run(test.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user