Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ enum _FileOperations {
try destination.withNTPathRepresentation { pwszDestination in
var faDestinationAttributes: WIN32_FILE_ATTRIBUTE_DATA = .init()
if GetFileAttributesExW(pwszDestination, GetFileExInfoStandard, &faDestinationAttributes) {
let error = CocoaError.moveFileError(GetLastError(), src, dst)
let error = CocoaError.moveFileError(ERROR_ALREADY_EXISTS, src, dst)
guard fileManager._shouldProceedAfter(error: error, movingItemAtPath: source, to: destination) else {
throw error
}
Expand Down