(directoryPath: string)
| 113 | } |
| 114 | |
| 115 | export function isDirectoryEmpty(directoryPath: string): boolean { |
| 116 | const absPath = resolveFilePath(directoryPath); |
| 117 | const dir = fs.opendirSync(absPath); |
| 118 | const firstEntry = dir.readSync(); |
| 119 | dir.closeSync(); |
| 120 | return firstEntry === null; |
| 121 | } |
| 122 | |
| 123 | export function getFilesSortedByUpdatedTime(directoryPath: string): string[] { |
| 124 | directoryPath = resolveFilePath(directoryPath); |
no test coverage detected