title: How to display only the directories from s3 bucket using aws cli command
body: <p>I need to display all the directories present inside the s3 bucket, where some directories are hidden and are shown again only if I filter the version to 'show' instead of hide.</p>
  
  <p>The same things goes to files where inside the directory we cant see the file but when we chose the filter in version to 'show', it shows the files.</p>
  
  <p>How can we see these files and directories in aws-cli. Please do help if you have a solution.</p>
  
  <hr>
  
  <p>For example:</p>
  
  <pre><code>roxor@ubuntu:~$ aws s3 ls s3://dw-etl-source-prod
  workday dsr
  </code></pre>
  
  <p>I need to get 4 directories, but since the directories contains versioning it is not been shown. If i filter in version to show it gives all the files in aws s3 UI, but how I can do the same using AWS CLI.</p>