Abacn commented on code in PR #17380:
URL: https://github.com/apache/beam/pull/17380#discussion_r863186976


##########
sdks/python/apache_beam/io/aws/s3filesystem.py:
##########
@@ -281,6 +281,25 @@ def checksum(self, path):
     except Exception as e:  # pylint: disable=broad-except
       raise BeamIOError("Checksum operation failed", {path: e})
 
+  def metadata(self, path):
+    """Fetch metadata fields of a file on the FileSystem.
+
+    Args:
+      path: string path of a file.
+
+    Returns:
+      :class:`~apache_beam.io.filesystem.FileMetadata`.
+
+    Raises:
+      ``BeamIOError``: if path isn't a file or doesn't exist.
+    """
+    try:
+      file_metadata = s3io.S3IO(options=self._options)._vars(path)

Review Comment:
   Thanks for pointing out! It was indeed a mistake, a leftover of a renaming 
request.



-- 
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]

Reply via email to