File tree 1 file changed +1
-3
lines changed
storage/json-api/src/main/java
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,10 @@ public static List<StorageObject> listBucket(String bucketName)
54
54
Storage .Objects .List listRequest = client .objects ().list (bucketName );
55
55
56
56
List <StorageObject > results = new ArrayList <StorageObject >();
57
- Objects objects ;
58
57
59
58
// Iterate through each page of results, and add them to our results list.
60
59
do {
61
- objects = listRequest .execute ();
60
+ Objects objects = listRequest .execute ();
62
61
// Add the items in this page of results to the list we'll return.
63
62
results .addAll (objects .getItems ());
64
63
@@ -165,7 +164,6 @@ public static void main(String[] args) {
165
164
System .out .println (object .getName () + " (" + object .getSize () + " bytes)" );
166
165
}
167
166
168
-
169
167
// Create a temp file to upload
170
168
Path tempPath = Files .createTempFile ("StorageSample" , "txt" );
171
169
Files .write (tempPath , "Sample file" .getBytes ());
You can’t perform that action at this time.
0 commit comments