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

Usage in Deno

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

Returns true if the fs.Dirent object describes a regular file.

Return Type

boolean