mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 23:59:08 +03:00
13 lines
192 B
TypeScript
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 }
|