Skip to content

Documentation: native fs.mkdir *does* seem to return the first directory created? #48

@valadaptive

Description

@valadaptive

The comparison of recursive mkdir implementations says that Node's built-in fs.mkdir doesn't return the first directory created.

However, the official Node documentation says it does so when {recursive: true} is passed:

Returns: Upon success, fulfills with undefined if recursive is false, or the first directory path created if recursive is true.

Was this added in a later Node version not specified in the docs, or does it behave differently from mkdirp? If not, it may be worth clarifying in the readme.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions