MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / readDir

Method readDir

common/src/system_storage.ts:27–32  ·  view source on GitHub ↗
(dirName: string)

Source from the content-addressed store, hash-verified

25 }
26
27 public readDir(dirName: string) {
28 const targetPath = path.normalize(path.join(StorageSubsystem.DATA_PATH, dirName));
29 if (!fs.existsSync(targetPath)) return [];
30 const files = fs.readdirSync(targetPath).map((v) => path.normalize(path.join(dirName, v)));
31 return files;
32 }
33
34 public deleteFile(name: string) {
35 const targetPath = path.normalize(path.join(StorageSubsystem.DATA_PATH, name));

Callers 2

readCategoryConfigFunction · 0.80
readCategoryConfigFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected