feat: check for name conflict on file/dir move

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2025-09-25 23:12:13 +00:00
parent 58775a25d9
commit 30027ae159
7 changed files with 126 additions and 30 deletions

View File

@@ -8,6 +8,10 @@ const ERROR_MESSAGE = {
[ErrorCode.DirectoryExists]: "Directory already exists",
[ErrorCode.FileExists]: "File already exists",
[ErrorCode.Internal]: "Internal application error",
[ErrorCode.Conflict]: "Conflict",
[ErrorCode.DirectoryNotFound]: "Directory not found",
[ErrorCode.FileNotFound]: "File not found",
[ErrorCode.Unauthenticated]: "Unauthenticated",
} as const
export function formatError(error: unknown): string {