You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within "write each file" method I was able to add one line of code to get it working :)
// Backup existing file if it existsif(awaitfs.access(absolutePath).then(()=>true).catch(()=>false)){awaitfs.copyFile(absolutePath,backupPath);}// Create necessary directories for the target fileawaitfs.mkdir(path.dirname(absolutePath),{recursive: true});// Write the new contentawaitfs.writeFile(absolutePath,fileToWrite.content,'utf-8');
The text was updated successfully, but these errors were encountered:
Within "write each file" method I was able to add one line of code to get it working :)
The text was updated successfully, but these errors were encountered: