| ... | ... | @@ -2770,9 +2770,6 @@ pub fn renameatW( |
| 2770 | 2770 | .SUCCESS => return, |
| 2771 | 2771 | // INVALID_PARAMETER here means that the filesystem does not support FileRenameInformationEx |
| 2772 | 2772 | .INVALID_PARAMETER => {}, |
| 2773 | | .DIRECTORY_NOT_EMPTY => return error.PathAlreadyExists, |
| 2774 | | .FILE_IS_A_DIRECTORY => return error.IsDir, |
| 2775 | | .NOT_A_DIRECTORY => return error.NotDir, |
| 2776 | 2773 | // For all other statuses, fall down to the switch below to handle them. |
| 2777 | 2774 | else => need_fallback = false, |
| 2778 | 2775 | } |
| ... | ... | @@ -2815,6 +2812,9 @@ pub fn renameatW( |
| 2815 | 2812 | .OBJECT_PATH_NOT_FOUND => return error.FileNotFound, |
| 2816 | 2813 | .NOT_SAME_DEVICE => return error.RenameAcrossMountPoints, |
| 2817 | 2814 | .OBJECT_NAME_COLLISION => return error.PathAlreadyExists, |
| 2815 | .DIRECTORY_NOT_EMPTY => return error.PathAlreadyExists, |
| 2816 | .FILE_IS_A_DIRECTORY => return error.IsDir, |
| 2817 | .NOT_A_DIRECTORY => return error.NotDir, |
| 2818 | 2818 | else => return windows.unexpectedStatus(rc), |
| 2819 | 2819 | } |
| 2820 | 2820 | } |