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
case 'create': {
// Check if file already exists
if (fsSync.existsSync(absolutePath)) {
throw new Error(
`File already exists: ${filePath}. Use str_replace to modify it.`,
);
}
I think it would be better that if when one does create on an existing file, it overwrites the file rather than failing.