This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/octofriend/source/fs-utils.ts
T

12 lines
167 B
TypeScript

import fs from "fs/promises";
export async function fileExists(path: string) {
try {
await fs.stat(path);
return true;
} catch {
return false;
}
}