fix: return millisecond timestamps from get_file_info() (#12996)

This commit is contained in:
Luke Mino-Altherr
2026-05-05 19:56:09 -07:00
committed by GitHub
parent 160b95f75c
commit 2b63add0ad
2 changed files with 7 additions and 3 deletions

View File

@@ -28,8 +28,8 @@ def get_file_info(path: str, relative_to: str) -> FileInfo:
return {
"path": os.path.relpath(path, relative_to).replace(os.sep, '/'),
"size": os.path.getsize(path),
"modified": os.path.getmtime(path),
"created": os.path.getctime(path)
"modified": int(os.path.getmtime(path) * 1000),
"created": int(os.path.getctime(path) * 1000),
}