Skip to content

Commit

Permalink
fix: Use FS-specific listdir in folder tap
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Nov 29, 2024
1 parent 537e914 commit be8e80a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions singer_sdk/contrib/filesystem/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def discover_streams(self) -> list:
filepaths=[os.path.join(path, member)], # noqa: PTH118
filesystem=self.fs,
)
for member in os.listdir(path)
for member in self.fs.listdir(path)
if member.endswith(self.valid_extensions)
]

Expand All @@ -189,7 +189,7 @@ def discover_streams(self) -> list:
name=self.config["stream_name"],
filepaths=[
os.path.join(path, member) # noqa: PTH118
for member in os.listdir(path)
for member in self.fs.listdir(path)
if member.endswith(self.valid_extensions)
],
filesystem=self.fs,
Expand Down

0 comments on commit be8e80a

Please sign in to comment.