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