[
https://issues.apache.org/jira/browse/BEAM-14314?focusedWorklogId=765137&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-765137
]
ASF GitHub Bot logged work on BEAM-14314:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 02/May/22 21:00
Start Date: 02/May/22 21:00
Worklog Time Spent: 10m
Work Description: 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.
Issue Time Tracking
-------------------
Worklog Id: (was: 765137)
Time Spent: 4h 20m (was: 4h 10m)
> 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 20m
> 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)