Skip to content

Commit 396dc0f

Browse files
millintomasfarias
authored andcommitted
fix: clean up the mess
1 parent eb78d84 commit 396dc0f

File tree

1 file changed

+0
-4
lines changed
  • airflow_dbt_python/hooks/fs

1 file changed

+0
-4
lines changed

airflow_dbt_python/hooks/fs/gcs.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,6 @@ def iter_url(self, source: URL) -> Iterable[URL]:
173173
bucket_name, key_prefix = _parse_gcs_url(str(source))
174174

175175
for key in self.list(bucket_name=bucket_name, prefix=key_prefix):
176-
if key.endswith("//"):
177-
# Sometimes, GCS files with empty names can appear, usually when using
178-
# the UI. These empty GCS files may also be confused with directories.
179-
continue
180176
yield URL.from_parts(scheme="gs", netloc=bucket_name, path=key)
181177

182178
def get_key(self, key: str, bucket_name: str) -> Blob:

0 commit comments

Comments
 (0)