(prefix, options)
| 2019 | } |
| 2020 | |
| 2021 | async function mkdtemp(prefix, options) { |
| 2022 | const h = vfsState.handlers; |
| 2023 | if (h !== null) { |
| 2024 | const promise = h.mkdtemp(prefix, options); |
| 2025 | if (promise !== undefined) return await promise; |
| 2026 | } |
| 2027 | |
| 2028 | options = getOptions(options); |
| 2029 | |
| 2030 | prefix = getValidatedPath(prefix, 'prefix'); |
| 2031 | warnOnNonPortableTemplate(prefix); |
| 2032 | |
| 2033 | return await PromisePrototypeThen( |
| 2034 | binding.mkdtemp(prefix, options.encoding, kUsePromises), |
| 2035 | undefined, |
| 2036 | handleErrorFromBinding, |
| 2037 | ); |
| 2038 | } |
| 2039 | |
| 2040 | async function mkdtempDisposable(prefix, options) { |
| 2041 | options = getOptions(options); |
nothing calls this directly
no test coverage detected
searching dependent graphs…