projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update .bashrc
[dotfiles/.git]
/
flat-cache
/
del.js
1
var rimraf = require( 'rimraf' ).sync;
2
var fs = require( 'graceful-fs' );
3
4
module.exports = function del( file ) {
5
if ( fs.existsSync( file ) ) {
6
//if rimraf doesn't throw then the file has been deleted or didn't exist
7
rimraf( file, {
8
glob: false
9
} );
10
return true;
11
}
12
return false;
13
};