Commit f2e0519
committed
Fix FileNotFoundError handling in rename_file methods
- Add FileNotFoundError exception handling to both sync and async rename_file methods
- Return HTTP 404 error instead of generic 500 error when file/directory doesn't exist
- Improves error specificity for file rename operations1 parent 31a8555 commit f2e0519
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
602 | 602 | | |
603 | 603 | | |
604 | 604 | | |
| 605 | + | |
| 606 | + | |
605 | 607 | | |
606 | 608 | | |
607 | 609 | | |
| |||
1069 | 1071 | | |
1070 | 1072 | | |
1071 | 1073 | | |
| 1074 | + | |
| 1075 | + | |
1072 | 1076 | | |
1073 | 1077 | | |
1074 | 1078 | | |
| |||
0 commit comments