Recursive mkdir coming to Node core · Issue #619 · jprichardson/node-fs-extra · GitHub
Skip to content

Recursive mkdir coming to Node core #619

Closed

Description

@RyanZim

Just opening an issue to track this.

A recursive flag was added to fs.mkdir in nodejs/node#21875.

It's unreleased so far, but it's in the 10.9.0 release proposal: nodejs/node#22295.

There is currently an open debate on how to determine in code whether the recursive flag is supported in the running Node version: nodejs/node#22302.

When this feature lands, I'd like to use it for ensureDir in environments that support it. Long-term, we may consider deprecating/removing mkdirp/mkdirs/ensureDir when all supported Node versions support it (separate discussion for another day).

Activity

  1. RyanZim commented on Aug 15, 2018

    @RyanZim
    CollaboratorAuthor

    This was pushed back, and will not be going into Node 10.9.0: nodejs/node#22295 (comment)

  2. RyanZim commented on Sep 24, 2018

    @RyanZim
    CollaboratorAuthor

    Unblocked as of nodejs/node#21875 (comment); should land in a future v10.x release.

  3. RyanZim commented on May 14, 2019

    @RyanZim
    CollaboratorAuthor

    This was released in Node v10.12.0; perhaps we should revisit this?

  4. RyanZim commented on Jan 24, 2020

    @RyanZim
    CollaboratorAuthor
  5. added this to the 9.0.0 milestone on Jan 30, 2020
  6. RyanZim commented on Jan 30, 2020

    @RyanZim
    CollaboratorAuthor

    I'm inclined to fork https://github.com/sindresorhus/make-dir into this project to use as the implementation here. It uses the native solution where possible, and the fallback solution fixes #524. The one sticker is that it depends on semver to determine if the current node version supports the recursive flag. I guess I'll have to hack some simpler version sniffing to avoid adding that dep.

  7. added 2 commits that reference this issue on Feb 6, 2020
    cc06967
    f6d7665
  8. added a commit that references this issue on Feb 14, 2020
    1dfee83
  9. added a commit that references this issue on Feb 18, 2020
    ab92b24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions