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

Function dir

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

Source from the content-addressed store, hash-verified

26}
27
28function dir(name: string): Dirent {
29 return {
30 name: name,
31 isFile: () => false,
32 isDirectory: () => true,
33 isBlockDevice: () => false,
34 isCharacterDevice: () => false,
35 isSymbolicLink: () => false,
36 isFIFO: () => false,
37 isSocket: () => false,
38 }
39}
40
41export class PyodideFakeFileSystem implements FileSystem {
42 private _hostedTypeshedBasePath: string

Callers 3

readdirEntriesSyncMethod · 0.85
generate_builtins_docsFunction · 0.85
generate_module_infoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected