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
I have the same problem, it has been a real headhake. My crappy patch has been to run this periodically: async function safeFileRename(sourcePath, destPath) {
try {
// Attempt to rename the file
await fs.promises.rename(sourcePath, destPath);
console.log(File renamed successfully: ${sourcePath} -> ${destPath});
} catch (error) {
if (error.code === "ENOENT") {
// Handle the case where the source file does not exist
console.error("[!!] Source file does not exist:", sourcePath);
} else {
// Handle other errors
console.error("[XX] Error renaming the file:", error.message);
}
}
}
The text was updated successfully, but these errors were encountered: