MCPcopy Create free account
hub / github.com/SplootCode/splootcode / file

Function file

packages/runtime-python/src/pyright.ts:15–26  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

13} from 'structured-pyright'
14
15function file(name: string): Dirent {
16 return {
17 name: name,
18 isFile: () => true,
19 isDirectory: () => false,
20 isBlockDevice: () => false,
21 isCharacterDevice: () => false,
22 isSymbolicLink: () => false,
23 isFIFO: () => false,
24 isSocket: () => false,
25 }
26}
27
28function dir(name: string): Dirent {
29 return {

Callers 1

readdirEntriesSyncMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected