We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbdf7ef commit 646b616Copy full SHA for 646b616
lib/utils/fs.js
@@ -76,7 +76,7 @@ function uniqueFilename(base, filename) {
76
var _filename = filename+ext;
77
78
var i = 0;
79
- while (fs.existsSync(filename)) {
+ while (fs.existsSync(_filename)) {
80
_filename = filename + '_' + i + ext;
81
i = i + 1;
82
}
0 commit comments