/
githubmirror
/
deno
Обзор
Документация
Войти
/
githubmirror
/
deno
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/specs/compile/code_cache/cleanup.ts
11 строк
305 B
Laurence Rowe
fix(tests): use correct path separator on unix for code_cache cleanup.ts (#30378)
12 авг 2025, 19:20
Не верифицирован
12 авг 2025, 19:20
e421451
Код
Авторство
О чём код?
import { tmpdir } from "node:os"; // cleanup the code cache file from a previous run try { if (Deno.build.os === "windows") { Deno.removeSync(tmpdir() + "\\deno-compile-using_code_cache.exe.cache"); } else { Deno.removeSync(tmpdir() + "/deno-compile-using_code_cache.cache"); } } catch { }