Skip to content

[WIP] fs: feature detection for recursive mkdir[Sync]#22302

Closed
MylesBorins wants to merge 9 commits intonodejs:masterfrom
MylesBorins:feature-detection
Closed

[WIP] fs: feature detection for recursive mkdir[Sync]#22302
MylesBorins wants to merge 9 commits intonodejs:masterfrom
MylesBorins:feature-detection

Conversation

@MylesBorins
Copy link
Contributor

@MylesBorins MylesBorins commented Aug 13, 2018

This commit adds a non-enumerable and non-writable property
Symbol('recursive') to fs.mkdir and fs.mkdirSync to allow developers
to feature detect

This PR adds a known symbol util.features that can be used to do feature detection on particular APIS.

How it can be used:

edited:

fs.mkdir[util.features].recursive
// true

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked PRs that are blocked by other issues or PRs. fs Issues and PRs related to the fs subsystem / file system. wip Issues and PRs that are still a work in progress.

Projects

None yet

Development

Successfully merging this pull request may close these issues.