Skip to main content

isDirectory

Checks if the given path is a directory.

  • import the method
import { isDirectory } from "nodelpers";
  • params
path: TPath;

TPath: fs.PathLike;
  • usage
let path = "/path/to/your/dir";
isDirectory(path); // true or false