public static HttpURLConnection listFilesAndDirectories ( final URI uri , final FileRequestOptions fileOptions , final OperationContext opContext , final ListingContext listingContext , String snapshotVersion ) throws URISyntaxException , IOException , StorageException { final UriQueryBuilder builder = getDirectoryUriQueryBuilder ( ) ; addShareSnapshot ( builder , snapshotVersion ) ; builder . add ( Constants . QueryConstants . COMPONENT , Constants . QueryConstants . LIST ) ; if ( listingContext != null ) { if ( ! Utility . isNullOrEmpty ( listingContext . getMarker ( ) ) ) { builder . add ( Constants . QueryConstants . MARKER , listingContext . getMarker ( ) ) ; } if ( listingContext . getMaxResults ( ) != null && listingContext . getMaxResults ( ) > 0 ) { builder . add ( Constants . QueryConstants . MAX_RESULTS , listingContext . getMaxResults ( ) . toString ( ) ) ; } if ( ! Utility . isNullOrEmpty ( listingContext . getPrefix ( ) ) ) { builder . add ( Constants . QueryConstants . PREFIX , listingContext . getPrefix ( ) . toString ( ) ) ; } } final HttpURLConnection request = BaseRequest . createURLConnection ( uri , fileOptions , builder , opContext ) ; request . setRequestMethod ( Constants . HTTP_GET ) ; return request ; }
Constructs a request to return a listing of all files and directories in this storage account . Sign with no length specified .