[ 
https://issues.apache.org/jira/browse/BEAM-14314?focusedWorklogId=765132&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-765132
 ]

ASF GitHub Bot logged work on BEAM-14314:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 02/May/22 20:57
            Start Date: 02/May/22 20:57
    Worklog Time Spent: 10m 
      Work Description: pabloem commented on code in PR #17380:
URL: https://github.com/apache/beam/pull/17380#discussion_r863185327


##########
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:
   hm in fact - I feel weird but shouldn't this be _status rathern than _vars - 
I cant find the _vars method...?





Issue Time Tracking
-------------------

    Worklog Id:     (was: 765132)
    Time Spent: 4h 10m  (was: 4h)

> Add last_updated field in filesystem.FileMetaData
> -------------------------------------------------
>
>                 Key: BEAM-14314
>                 URL: https://issues.apache.org/jira/browse/BEAM-14314
>             Project: Beam
>          Issue Type: New Feature
>          Components: io-py-common
>            Reporter: Yi Hu
>            Assignee: Yi Hu
>            Priority: P2
>          Time Spent: 4h 10m
>  Remaining Estimate: 0h
>
> This will be the python counterpart of BEAM-5910
> Per python naming convention, the field will be named as 
> "last_updated_in_seconds".



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to