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
Checks if the given path is a directory.
import { isDirectory } from "nodelpers";
path: TPath;
TPath: fs.PathLike;
let path = "/path/to/your/dir";
isDirectory(path); // true or false