(path)
| 43 | } |
| 44 | |
| 45 | pathIsRelative(path) { |
| 46 | if (path === '' || path[0] !== '.') return false; |
| 47 | if (path.length === 1) return true; |
| 48 | const idx = path[1] === '.' ? 2 : 1; |
| 49 | if (path.length <= idx) return false; |
| 50 | return this.fs.isSeparator(path[idx]); |
| 51 | } |
| 52 | |
| 53 | pathIsAbsolute(path) { |
| 54 | return path !== '' && (this.fs.isSeparator(path[0]) || this.fs.isAbsolute(path)); |
no test coverage detected