We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 829cddb commit d1f01b7Copy full SHA for d1f01b7
tap_universal_file/files.py
@@ -133,7 +133,7 @@ def get_files(
133
yield file_dict
134
continue
135
136
- if none_found:
+ if self.config["fail_when_no_files_found"] and none_found:
137
msg = (
138
"No files found. Choose a different `file_path` or try a more lenient "
139
"`file_regex`."
tap_universal_file/tap.py
@@ -90,6 +90,12 @@ class TapUniversalFile(Tap):
90
"matching file extension, appropriately configure `file_regex`."
91
),
92
93
+ th.Property(
94
+ "fail_when_no_files_found",
95
+ th.BooleanType,
96
+ default=True,
97
+ description="Fail when no files are found",
98
+ ),
99
th.Property(
100
"compression",
101
th.StringType,
0 commit comments