Skip to main content

isValidPath

Checks if a directory exists at the given file path.

  • import the method
import { isValidPath } from "nodelpers";
  • params
fp: string;
  • usage
let path = "/path/to/your/dir";
isValidPath(path); // true or false