Currently there is this code:
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.