liferoad commented on code in PR #34390:
URL: https://github.com/apache/beam/pull/34390#discussion_r2029183086


##########
sdks/python/apache_beam/io/textio.py:
##########
@@ -781,6 +782,13 @@ def __init__(
     """
 
     super().__init__(**kwargs)
+    if file_pattern:
+      try:
+        if not os.path.dirname(file_pattern):
+          file_pattern = os.path.join('.', file_pattern)
+      except TypeError:

Review Comment:
   file_pattern coud be passed in as other types, for example, ValueProvider.



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