runtipi/packages/cli/src/utils/fs-helpers/fs-helpers.ts
2023-08-16 21:53:59 +02:00

9 lines
181 B
TypeScript

import fs from 'fs';
export const pathExists = async (path: string): Promise<boolean> => {
return fs.promises
.access(path)
.then(() => true)
.catch(() => false);
};