import { exists } from "https://deno.land/x/fathym_common@v0.2.147-integration/src/common/path/exists.ts";
Determine if a path exists (async).
Examples
From direct import
From direct import
import { exists } from '@fathym/common/path';
if (await exists('/path/to/file.txt')) {
console.log('File exists');
}
From common import
From common import
import { exists } from '@fathym/common';
if (await exists('/path/to/file.txt')) {
console.log('File exists');
}