bryanck commented on code in PR #8168:
URL: https://github.com/apache/iceberg/pull/8168#discussion_r1284368476


##########
gcp/src/main/java/org/apache/iceberg/gcp/gcs/GCSFileIO.java:
##########
@@ -174,4 +181,46 @@ public void close() {
       }
     }
   }
+
+  @Override
+  public Iterable<FileInfo> listPrefix(String prefix) {
+    GCSLocation location = new GCSLocation(prefix);
+    return () ->
+        client()
+            .list(location.bucket(), 
Storage.BlobListOption.prefix(location.prefix()))
+            .streamAll()
+            .map(
+                blob ->
+                    new FileInfo(
+                        String.format("gs://%s/%s", blob.getBucket(), 
blob.getName()),
+                        blob.getSize(),
+                        getCreateTimeMillis(blob)))
+            .iterator();
+  }
+
+  private long getCreateTimeMillis(Blob blob) {

Review Comment:
   Thanks, I changed this to `createTimeMillisFrom`



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to