Skip to content

Commit 4221a19

Browse files
author
Sebastian.Just
committed
extract filename
1 parent 1c6633d commit 4221a19

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/fileinfo.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ module.exports = function (options) {
3737
}
3838
}
3939
//Touch the file to be sure. Synchronous to have this done before the emit of 'begin' happens
40+
var touchFile = options.baseDir() + '/' + this.name;
4041
mkdirp(options.baseDir(), function (err) {
4142
if (err) {}
42-
else {fs.closeSync(fs.openSync(options.baseDir() + '/' + this.name, 'w'));}
43+
else {fs.closeSync(fs.openSync(touchFile, 'w'));}
4344
});
4445
};
4546

0 commit comments

Comments
 (0)