mirror of
https://github.com/rclone/rclone.git
synced 2024-12-23 07:29:35 +01:00
lsjson: make sure we set the global metadata flag too
This commit is contained in:
parent
3ef97993ad
commit
038a87c569
@ -117,6 +117,12 @@ can be processed line by line as each item is written one to a line.
|
|||||||
"groups": "Filter,Listing",
|
"groups": "Filter,Listing",
|
||||||
},
|
},
|
||||||
RunE: func(command *cobra.Command, args []string) error {
|
RunE: func(command *cobra.Command, args []string) error {
|
||||||
|
// Make sure we set the global Metadata flag too as it
|
||||||
|
// isn't parsed by cobra. We need to do this first
|
||||||
|
// before any backends are created.
|
||||||
|
ci := fs.GetConfig(context.Background())
|
||||||
|
ci.Metadata = opt.Metadata
|
||||||
|
|
||||||
cmd.CheckArgs(1, 1, command, args)
|
cmd.CheckArgs(1, 1, command, args)
|
||||||
var fsrc fs.Fs
|
var fsrc fs.Fs
|
||||||
var remote string
|
var remote string
|
||||||
|
Loading…
Reference in New Issue
Block a user