Files
supabase/apps/docs/features/helpers.fs.ts
2024-07-03 10:25:06 -04:00

13 lines
192 B
TypeScript

import { stat } from 'fs/promises'
const existsFile = async (fullPath: string) => {
try {
await stat(fullPath)
return true
} catch {
return false
}
}
export { existsFile }