(dirName: string)
| 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)); |
no outgoing calls
no test coverage detected