diff --git a/src/utils/fs.ts b/src/utils/fs.ts index e48e7ce..1ed081e 100644 --- a/src/utils/fs.ts +++ b/src/utils/fs.ts @@ -270,7 +270,7 @@ export async function removeItem(path: string, dryRun = false): Promise } catch (error) { // Log the error for debugging but don't expose details to potential attackers const code = (error as NodeJS.ErrnoException).code; - if (code !== 'ENOENT' && code !== 'EACCES') { + if (code !== 'ENOENT' && code !== 'EACCES' && code !== 'EPERM') { console.error(`Failed to remove ${path}: ${code || 'unknown error'}`); } return false;