Created
March 20, 2016 11:16
-
-
Save chuck0523/3c9844102f359b982869 to your computer and use it in GitHub Desktop.
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
var fs = require('fs') | |
var glob = require('glob') | |
var rimraf = require('rimraf') | |
fs.mkdirSync('foo') | |
fs.mkdirSync('foo/bar', 0) | |
var g = new glob.Glob('foo/**/bar', function(err) { | |
err.code === 'EACCES' | |
g.abort() | |
rimraf.sync('foo') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment