(path, options)
| 855 | } |
| 856 | |
| 857 | readlinkSync(path, options) { |
| 858 | const normalized = this.#normalizePath(path); |
| 859 | const entry = this.#getEntry(normalized, 'readlink', false); |
| 860 | |
| 861 | if (!entry.isSymbolicLink()) { |
| 862 | throw createEINVAL('readlink', path); |
| 863 | } |
| 864 | |
| 865 | return entry.target; |
| 866 | } |
| 867 | |
| 868 | async readlink(path, options) { |
| 869 | return this.readlinkSync(path, options); |
no test coverage detected