Fix VS Code file mime type serialization

This commit is contained in:
Alexa Amundson
2025-11-16 04:36:11 -06:00
parent 902e21b760
commit a82809a1cc
3 changed files with 78 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ async def list_code_files(
"name": f.name,
"path": f.path,
"size": f.size,
"mime_type": f.mime_type,
"mime_type": f.file_type or None,
"folder_id": f.folder_id,
"created_at": f.created_at.isoformat(),
"updated_at": f.updated_at.isoformat(),
@@ -96,7 +96,7 @@ async def get_file_content(
"content": "// File content would be loaded here\n// from S3 or file system",
"metadata": {
"size": file.size,
"mime_type": file.mime_type,
"mime_type": file.file_type or None,
"created_at": file.created_at.isoformat(),
"updated_at": file.updated_at.isoformat()
}