ashb commented on code in PR #25935:
URL: https://github.com/apache/airflow/pull/25935#discussion_r960506867


##########
airflow/dag_processing/manager.py:
##########
@@ -913,6 +931,16 @@ def get_run_count(self, file_path):
         stat = self._file_stats.get(file_path)
         return stat.run_count if stat else 0
 
+    def get_dag_directory(self) -> str:
+        """
+        Returns the dag_director as a string.
+        :rtype: str
+        """
+        if self._dag_directory is Path:
+            return str(Path(self._dag_directory).resolve())

Review Comment:
   ```suggestion
           if isinstance(self._dag_directory, Path):
               return str(self._dag_directory.resolve())
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to