(filePath: string)
| 10 | |
| 11 | /** Gets the status of the specified file. Returns null if the file does not exist. */ |
| 12 | export function getFileStatus(filePath: string): Stats | null { |
| 13 | try { |
| 14 | return statSync(filePath); |
| 15 | } catch { |
| 16 | return null; |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | /** Ensures that the specified path uses forward slashes as delimiter. */ |
| 21 | export function convertPathToForwardSlash(path: string) { |
no outgoing calls
no test coverage detected