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 f37b087 commit 77c4bbaCopy full SHA for 77c4bba
lib/galaxy/files/sources/huggingface.py
@@ -101,6 +101,11 @@ def _to_filesystem_path(self, path: str) -> str:
101
# Remove leading slash for HF compatibility
102
return path.lstrip("/")
103
104
+ def _extract_timestamp(self, info: dict) -> Optional[str]:
105
+ """Extract timestamp from Hugging Face file info to use it in the RemoteFile entry."""
106
+ last_commit: dict = info.get("last_commit", {})
107
+ return last_commit.get("date")
108
+
109
def _list(
110
self,
111
context: FilesSourceRuntimeContext[HuggingFaceFileSourceConfiguration],
0 commit comments