(path: string)
| 41 | } |
| 42 | |
| 43 | export function stat(path: string): Promise<fs.Stats | undefined> { |
| 44 | return new Promise(cb => { |
| 45 | fs.stat(path, (err, stat) => { |
| 46 | return cb(err ? undefined : stat); |
| 47 | }); |
| 48 | }); |
| 49 | } |
| 50 | |
| 51 | export function readdir(path: string): Promise<string[]> { |
| 52 | return new Promise(cb => { |
no test coverage detected