diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-04-28 21:25:58 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-04-28 21:25:58 +0200 |
commit | 826f90505c1a70ad2a8cf3715bac6d5efaeba22c (patch) | |
tree | a35600d555ff0268f6eb2fc1bd9c44c06438eb27 /lib/output/helper/writeFile.js | |
parent | 7ae36f16c84238340dd6b39a75423f5e95f27bbc (diff) | |
download | gitbook-826f90505c1a70ad2a8cf3715bac6d5efaeba22c.zip gitbook-826f90505c1a70ad2a8cf3715bac6d5efaeba22c.tar.gz gitbook-826f90505c1a70ad2a8cf3715bac6d5efaeba22c.tar.bz2 |
Add command "init"
Diffstat (limited to 'lib/output/helper/writeFile.js')
-rw-r--r-- | lib/output/helper/writeFile.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/output/helper/writeFile.js b/lib/output/helper/writeFile.js index 3e2261d..a6d4645 100644 --- a/lib/output/helper/writeFile.js +++ b/lib/output/helper/writeFile.js @@ -13,7 +13,7 @@ function writeFile(output, filePath, content) { var rootFolder = output.getRoot(); filePath = path.join(rootFolder, filePath); - return fs.ensure(filePath) + return fs.ensureFile(filePath) .then(function() { return fs.writeFile(filePath, content); }) |