(oldPath: string, newPath: string)
| 96 | } |
| 97 | |
| 98 | rename(oldPath: string, newPath: string): void { |
| 99 | const oldNormalized = this.normalizePath(oldPath); |
| 100 | const newNormalized = this.normalizePath(newPath); |
| 101 | |
| 102 | const file = this.files.get(oldNormalized); |
| 103 | if (file) { |
| 104 | this.files.delete(oldNormalized); |
| 105 | file.path = newNormalized; |
| 106 | file.name = this.getFileName(newNormalized); |
| 107 | file.basename = this.getBaseName(newNormalized); |
| 108 | this.files.set(newNormalized, file); |
| 109 | this.emitter.emit('rename', file, oldNormalized); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | exists(path: string): boolean { |
| 114 | const normalizedPath = this.normalizePath(path); |
nothing calls this directly
no test coverage detected