Including the parent directory in the output when running rclone lsf?

Is it possible to list the parent directory instead of just its contents when using:

rclone lsf

? I tried to look online and play around with the different --include options, but I was unable to produce a result which included the parent.

For my intended use I need the modtime of directories to be included in the output. This is the current command which I'm using:

rclone lsf --refresh-times -R --format "pt" google-drive:/pathtofolder/

I thought that I might be able to use rclone tree to do this, however it doesn't appear as though you can print the modification time of directories with that command.

I found the solution. The trick was to do list the parent directory of the directory which I want to include in the output and afterwards use the --include option combined with two globs to get my desired output:

rclone lsf --format "pt" -R --include "Desired-Folder/**" google-drive:/

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.