Skip to main content
Dirent.prototype.isDirectory - fs - Node documentation
method Dirent.prototype.isDirectory

Usage in Deno

import { Dirent } from "node:fs";
Dirent.prototype.isDirectory(): boolean

Returns true if the fs.Dirent object describes a file system directory.

Return Type

boolean