This is an automated email from the ASF dual-hosted git repository.
jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new da4af372d73 Fix walking through wildcarded directory in FileTrigger
(#57155)
da4af372d73 is described below
commit da4af372d732e96f48b1a41036b1880c4aa01492
Author: Mikhail Ilchenko <[email protected]>
AuthorDate: Fri Nov 14 01:16:45 2025 +0400
Fix walking through wildcarded directory in FileTrigger (#57155)
Fix is similar to the one in #21729
---
providers/standard/src/airflow/providers/standard/triggers/file.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/providers/standard/src/airflow/providers/standard/triggers/file.py
b/providers/standard/src/airflow/providers/standard/triggers/file.py
index 6df163a6f7c..38f4a5ea178 100644
--- a/providers/standard/src/airflow/providers/standard/triggers/file.py
+++ b/providers/standard/src/airflow/providers/standard/triggers/file.py
@@ -79,7 +79,7 @@ class FileTrigger(BaseTrigger):
self.log.info("Found File %s last modified: %s", path,
mod_time)
yield TriggerEvent(True)
return
- for _, _, files in os.walk(self.filepath):
+ for _, _, files in os.walk(path):
if files:
yield TriggerEvent(True)
return