MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / makeDirStats

Function makeDirStats

packages/kaos/test/ssh.test.ts:1332–1348  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1330 }
1331
1332 function makeDirStats(): unknown {
1333 return {
1334 mode: 0o040755,
1335 size: 0,
1336 uid: 0,
1337 gid: 0,
1338 atime: 0,
1339 mtime: 0,
1340 isDirectory: (): boolean => true,
1341 isFile: (): boolean => false,
1342 isSymbolicLink: (): boolean => false,
1343 isSocket: (): boolean => false,
1344 isCharacterDevice: (): boolean => false,
1345 isBlockDevice: (): boolean => false,
1346 isFIFO: (): boolean => false,
1347 };
1348 }
1349
1350 it('mkdir (non-parents) rejects when existOk=true but path is a file', async () => {
1351 // simple mkdir branch: exists=true + existOk=true + not a directory

Callers 1

statFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected