Skip to content

Commit

Permalink
Use details
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Nov 30, 2024
1 parent 1eb5b39 commit 14d6d40
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions singer_sdk/contrib/filesystem/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,12 @@ def discover_streams(self) -> list:
return [
self.default_stream_class(
tap=self,
name=file_path_to_stream_name(member),
filepaths=[os.path.join(path, member)], # noqa: PTH118
name=file_path_to_stream_name(member["name"]),
filepaths=[os.path.join(path, member["name"])], # noqa: PTH118
filesystem=self.fs,
)
for member in self.fs.listdir(path, detail=False)
if member.endswith(self.valid_extensions)
for member in self.fs.listdir(path)
if member["name"].endswith(self.valid_extensions)
]

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

0 comments on commit 14d6d40

Please sign in to comment.