MCPcopy Create free account
hub / github.com/wonderwhy-er/DesktopCommanderMCP / getInfo

Method getInfo

src/utils/files/binary.ts:49–65  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

47 }
48
49 async getInfo(path: string): Promise<FileInfo> {
50 const stats = await fs.stat(path);
51
52 return {
53 size: stats.size,
54 created: stats.birthtime,
55 modified: stats.mtime,
56 accessed: stats.atime,
57 isDirectory: stats.isDirectory(),
58 isFile: stats.isFile(),
59 permissions: stats.mode.toString(8).slice(-3),
60 fileType: 'binary',
61 metadata: {
62 isBinary: true
63 }
64 };
65 }
66
67 /**
68 * Generate instructions for handling binary files

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected