Skip to content

Commit

Permalink
rename_crash_hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ganeshh123 committed Sep 29, 2020
1 parent 30b6c04 commit 563c73c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/rename_to_ascii.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,12 @@ let renameToAscii = (files) => {
let oldFile = file
let newFile = newFileName

fileSystem.renameSync(oldFile, newFile)
newListOfFiles[index] = newFile
try{
fileSystem.renameSync(oldFile, newFile)
newListOfFiles[index] = newFile
}catch(err) {
console.log('Error renaming ' + oldFile)
}
}
})

Expand Down

0 comments on commit 563c73c

Please sign in to comment.