From c910de20c560d18a576a8c8556d283f693c349e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Achim=20G=C3=A4dke?= <135793393+AchimGaedkeLynker@users.noreply.github.com> Date: Wed, 4 Mar 2026 11:54:01 +1300 Subject: [PATCH 1/2] Disable listings cache for URL-like paths --- airflow_code_editor/fs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow_code_editor/fs.py b/airflow_code_editor/fs.py index 510fb12..2e62c1a 100644 --- a/airflow_code_editor/fs.py +++ b/airflow_code_editor/fs.py @@ -109,7 +109,7 @@ def _open_fs(self, path: str) -> Tuple[fsspec.AbstractFileSystem, str]: return fsspec.filesystem("memory"), "/" elif "://" in path: # URL-like path, let fsspec handle it - return fsspec.url_to_fs(path) + return fsspec.url_to_fs(path, use_listings_cache=False) else: # Local file path return fsspec.filesystem("file"), path From f8176b0dbdac0cc83e2a440649135832fdba8dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Achim=20G=C3=A4dke?= <135793393+AchimGaedkeLynker@users.noreply.github.com> Date: Wed, 4 Mar 2026 12:12:14 +1300 Subject: [PATCH 2/2] remove redunant code/default parameters --- airflow_code_editor/fs.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/airflow_code_editor/fs.py b/airflow_code_editor/fs.py index 2e62c1a..037ef85 100644 --- a/airflow_code_editor/fs.py +++ b/airflow_code_editor/fs.py @@ -518,22 +518,22 @@ def delete(self) -> None: def stat(self) -> os.stat_result: "File stat" info = self.root_fs.info(self.path) - mtime = info.get("mtime", info.get("LastModified", None)) + mtime = info.get("mtime", info.get("LastModified")) if isinstance(mtime, datetime.datetime): # todo: timezone? mtime = mtime.timestamp() return os.stat_result( ( - info.get("mode", None), - info.get("ino", None), + info.get("mode"), + info.get("ino"), None, - info.get("nlink", None), - info.get("uid", None), - info.get("gid", None), + info.get("nlink"), + info.get("uid"), + info.get("gid"), info["size"], None, mtime, - info.get("created", None), + info.get("created"), ) )