Skip to content

Feature request: .isFile()/.isDir()/.isLink()/.isSymlink() #998

Open
@queengooborg

Description

@queengooborg

In mdn/yari, we use the following code to check to see if a file path is a directory:

if ((await fs.stat(<path>)).isDirectory()) {
  // ...
}

It would be awesome for fs-extra to have a shortcut:

if (await fse.isDir(<path>)) {
  // ...
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions