import { accessSync, promises } from 'node:fs'; export function fsAccess(path: string): boolean { try { accessSync(path); return true; } catch (error) { return false; } } export async function fsTouch(filePath: string): Promise { const fd = await promises.open(filePath, 'a'); await fd.close(); }