github.com/10XDev/rclone@v1.52.3-0.20200626220027-16af9ab76b2a/docs/content/commands/rclone_lsd.md (about)

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