MCPcopy
hub / github.com/shiyi-0x7f/o-lib / FileInfo

Interface FileInfo

src/pages/BookshelfPage.tsx:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10import WirelessTransfer from "../components/WirelessTransfer";
11
12interface FileInfo {
13 name: string;
14 path: string;
15 is_dir: boolean;
16 size: number;
17 extension: string;
18 modified?: string;
19}
20
21function formatSize(bytes: number): string {
22 if (!bytes) return "—";

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected