This repository has been archived by the owner on Jun 19, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating wrench rmdirSyncRecursive to support permissions issues for …
…windows.
- Loading branch information
1 parent
5c716f9
commit 793c61e
Showing
3 changed files
with
45 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
var testCase = require('nodeunit').testCase; | ||
var fs = require('fs'); | ||
var wrench = require('../lib/wrench'); | ||
var path = require('path'); | ||
|
||
module.exports = testCase({ | ||
test_rmdirSyncRecursive: function(test) { | ||
var dir = __dirname + '/_tmp/foo/bar'; | ||
|
||
wrench.mkdirSyncRecursive(dir, 0777); | ||
|
||
test.equals(fs.existsSync(dir), true, 'Dir should exist - mkdirSyncRecursive not working?'); | ||
|
||
wrench.rmdirSyncRecursive(dir); | ||
|
||
test.equals(fs.existsSync(dir), false, 'Dir should not exist now...'); | ||
|
||
test.done(); | ||
}, | ||
}); | ||
|
||
// vim: et ts=4 sw=4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters