import fs from "node:fs/promises";
export async function fileExists(fsPath) {
    try {
        const stat = await fs.stat(fsPath);
        return stat.isFile();
    }
    catch (err) {
        return false;
    }
}
export async function dirExists(fsPath) {
    try {
        const stat = await fs.stat(fsPath);
        return stat.isDirectory();
    }
    catch (err) {
        return false;
    }
}
//# sourceMappingURL=xfs.js.map