mirror of
https://github.com/mindverse/Second-Me.git
synced 2026-07-22 23:53:27 +00:00
15 lines
293 B
Python
15 lines
293 B
Python
from typing import Optional, List
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class FileItem(BaseModel):
|
|
name: str
|
|
type: str # "file" or "directory"
|
|
size: Optional[int]
|
|
path: str
|
|
url: Optional[str]
|
|
|
|
|
|
class DirectoryListing(BaseModel):
|
|
current_path: str
|
|
items: List[FileItem]
|