From 980c0d078bae328f8784d248e342281f8e97c8fe Mon Sep 17 00:00:00 2001 From: streamich Date: Sun, 22 Oct 2017 12:47:03 +0100 Subject: [PATCH] feat: added mkdirp to the lists as requested per https://github.com/streamich/memfs/issues/45 --- package.json | 2 +- src/util/lists.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 88110876..7b23baf1 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fs-monkey", - "version": "0.2.1", + "version": "0.2.2", "description": "Monkey patches for file system related things.", "main": "lib/index.js", "keywords": [ diff --git a/src/util/lists.js b/src/util/lists.js index 36b05784..b6edcf1c 100644 --- a/src/util/lists.js +++ b/src/util/lists.js @@ -28,6 +28,7 @@ export const fsSyncMethods = [ 'unlinkSync', 'rmdirSync', 'mkdirSync', + 'mkdirpSync', 'readdirSync', 'closeSync', 'openSync', @@ -65,6 +66,7 @@ export const fsAsyncMethods = [ 'unlink', 'rmdir', 'mkdir', + 'mkdirp', 'readdir', 'close', 'open',