github.com/ncw/rclone@v1.48.1-0.20190724201158-a35aa1360e3e/docs/content/commands/rclone_lsd.md (about) 1 --- 2 date: 2019-06-20T16:09:42+01:00 3 title: "rclone lsd" 4 slug: rclone_lsd 5 url: /commands/rclone_lsd/ 6 --- 7 ## rclone lsd 8 9 List all directories/containers/buckets in the path. 10 11 ### Synopsis 12 13 14 Lists the directories in the source path to standard output. Does not 15 recurse by default. Use the -R flag to recurse. 16 17 This command lists the total size of the directory (if known, -1 if 18 not), the modification time (if known, the current time if not), the 19 number of objects in the directory (if known, -1 if not) and the name 20 of the directory, Eg 21 22 $ rclone lsd swift: 23 494000 2018-04-26 08:43:20 10000 10000files 24 65 2018-04-26 08:43:20 1 1File 25 26 Or 27 28 $ rclone lsd drive:test 29 -1 2016-10-17 17:41:53 -1 1000files 30 -1 2017-01-03 14:40:54 -1 2500files 31 -1 2017-07-08 14:39:28 -1 4000files 32 33 If you just want the directory names use "rclone lsf --dirs-only". 34 35 36 Any of the filtering options can be applied to this command. 37 38 There are several related list commands 39 40 * `ls` to list size and path of objects only 41 * `lsl` to list modification time, size and path of objects only 42 * `lsd` to list directories only 43 * `lsf` to list objects and directories in easy to parse format 44 * `lsjson` to list objects and directories in JSON format 45 46 `ls`,`lsl`,`lsd` are designed to be human readable. 47 `lsf` is designed to be human and machine readable. 48 `lsjson` is designed to be machine readable. 49 50 Note that `ls` and `lsl` recurse by default - use "--max-depth 1" to stop the recursion. 51 52 The other list commands `lsd`,`lsf`,`lsjson` do not recurse by default - use "-R" to make them recurse. 53 54 Listing a non existent directory will produce an error except for 55 remotes which can't have empty directories (eg s3, swift, gcs, etc - 56 the bucket based remotes). 57 58 59 ``` 60 rclone lsd remote:path [flags] 61 ``` 62 63 ### Options 64 65 ``` 66 -h, --help help for lsd 67 -R, --recursive Recurse into the listing. 68 ``` 69 70 See the [global flags page](/flags/) for global options not listed here. 71 72 ### SEE ALSO 73 74 * [rclone](/commands/rclone/) - Show help for rclone commands, flags and backends. 75