(filepath)
| 118 | |
| 119 | // if path exists, assume it's a directory; otherwise, assume a YML extension |
| 120 | async function getFilepath(filepath) { |
| 121 | try { |
| 122 | await fs.stat(filepath) |
| 123 | filepath = filepath + '/' |
| 124 | } catch (_) { |
| 125 | filepath = filepath + '.yml' |
| 126 | } |
| 127 | |
| 128 | // we only need the relative path |
| 129 | return filepath.replace(path.join(__dirname, '../../'), '') |
| 130 | } |
no outgoing calls
no test coverage detected