Package examples

Class WalkFromRoot


  • public class WalkFromRoot
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      WalkFromRoot()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)
      Walks a bucket from the root listing all directories and files.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WalkFromRoot

        public WalkFromRoot()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Walks a bucket from the root listing all directories and files. Internally uses the S3FileSystemProvider's newDirectoryStream() method which uses asynchronous paginated calls to S3.
        Parameters:
        args - provide a bucket name to walk
        Throws:
        java.io.IOException - if a communication problem happens with the S3 service.