Skip to content

Commit 646b616

Browse files
committed
Fix fs.uniqueFilename()
1 parent bbdf7ef commit 646b616

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils/fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function uniqueFilename(base, filename) {
7676
var _filename = filename+ext;
7777

7878
var i = 0;
79-
while (fs.existsSync(filename)) {
79+
while (fs.existsSync(_filename)) {
8080
_filename = filename + '_' + i + ext;
8181
i = i + 1;
8282
}

0 commit comments

Comments
 (0)