You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/04/26 21:55:38 UTC

[GitHub] [beam] Abacn commented on a diff in pull request #17380: [BEAM-14314][BEAM-9532] Add last_updated field in filesystem.FileMetaData

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


##########
sdks/python/apache_beam/io/hadoopfilesystem.py:
##########
@@ -399,6 +418,26 @@ def checksum(self, url):
         file_checksum[_FILE_CHECKSUM_BYTES],
     )
 
+  def metadata(self, url):
+    """Fetch metadata fields of a file on the FileSystem.
+
+    Args:
+      url: string url of a file.
+
+    Returns:
+      :class:`~apache_beam.io.filesystem.FileMetadata`.
+      Note: last_updated field is not supported yet.

Review Comment:
   It is supported since revision of [01f639f](https://github.com/apache/beam/pull/17380/commits/01f639f67a273f1e35c1207ccfdea59eba0a4551). Outdated comments. my fault. 



-- 
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: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org