| 28 | * File node |
| 29 | */ |
| 30 | export interface FileNode { |
| 31 | /** Unique identifier */ |
| 32 | id: string; |
| 33 | /** File/folder name */ |
| 34 | name: string; |
| 35 | /** Full path, e.g. "/photos/2024/img.jpg" */ |
| 36 | path: string; |
| 37 | /** Node type */ |
| 38 | type: FileNodeType; |
| 39 | /** Parent node ID, null for root node */ |
| 40 | parentId: string | null; |
| 41 | /** Child node ID list (folder type only) */ |
| 42 | children?: string[]; |
| 43 | /** File content (optional, loaded on demand) */ |
| 44 | content?: unknown; |
| 45 | /** Metadata */ |
| 46 | metadata?: FileMetadata; |
| 47 | } |
| 48 | |
| 49 | // ============ File system store types ============ |
| 50 |
nothing calls this directly
no outgoing calls
no test coverage detected