(path, options)
| 1720 | } |
| 1721 | |
| 1722 | async function readlink(path, options) { |
| 1723 | const h = vfsState.handlers; |
| 1724 | if (h !== null) { |
| 1725 | const promise = h.readlink(path, options); |
| 1726 | if (promise !== undefined) return await promise; |
| 1727 | } |
| 1728 | options = getOptions(options); |
| 1729 | path = getValidatedPath(path, 'oldPath'); |
| 1730 | return await PromisePrototypeThen( |
| 1731 | binding.readlink(path, options.encoding, kUsePromises), |
| 1732 | undefined, |
| 1733 | handleErrorFromBinding, |
| 1734 | ); |
| 1735 | } |
| 1736 | |
| 1737 | async function symlink(target, path, type) { |
| 1738 | const h = vfsState.handlers; |
no test coverage detected
searching dependent graphs…