#If I run `fs.access` in a vortex
1 messages · Page 1 of 1 (latest)
If you're using the vortex-api fs module - use fs.statAsync
export async function fileExists(filePath: string): Promise<boolean> {
try {
await fs.statAsync(filePath);
return true;
} catch (err) {
return false;
}
}