mirror of
https://github.com/rclone/rclone.git
synced 2026-01-05 18:13:17 +00:00
operations: fix lsjson --stat on root directories of bucket based backends
This commit is contained in:
@@ -133,7 +133,7 @@ func TestListJSON(t *testing.T) {
|
||||
IsDir: false,
|
||||
}},
|
||||
}, {
|
||||
name: "NoModTime",
|
||||
name: "NoMimeType",
|
||||
opt: operations.ListJSONOpt{
|
||||
FilesOnly: true,
|
||||
NoMimeType: true,
|
||||
@@ -254,6 +254,24 @@ func TestStatJSON(t *testing.T) {
|
||||
Name: "",
|
||||
IsDir: true,
|
||||
},
|
||||
}, {
|
||||
name: "RootFilesOnly",
|
||||
remote: "",
|
||||
opt: operations.ListJSONOpt{
|
||||
FilesOnly: true,
|
||||
},
|
||||
want: nil,
|
||||
}, {
|
||||
name: "RootDirsOnly",
|
||||
remote: "",
|
||||
opt: operations.ListJSONOpt{
|
||||
DirsOnly: true,
|
||||
},
|
||||
want: &operations.ListJSONItem{
|
||||
Path: "",
|
||||
Name: "",
|
||||
IsDir: true,
|
||||
},
|
||||
}, {
|
||||
name: "Dir",
|
||||
remote: "sub",
|
||||
|
||||
Reference in New Issue
Block a user