Search Issue Tracker
Fixed in 2021.3.45f1
Fixed in 2021.3.X, 2022.3.X, 6000.0.X, 7000.0.0a3, future release
Votes
1
Found in
2021.3.34f1
2022.3.19f1
2023.2.9f1
2023.3.0b5
6000.0.0b11
Issue ID
UUM-62633
Regression
No
FileUtil.ReplaceDirectory throws an uninformative error when the destination path contains a locked file
How to reproduce:
1. Open the attached Project "fileUtilTestFinal.zip"
2. Launch the Application located in "<ProjectPath>/dst/fileUtilTest.exe"
3. In the Unity Editor click "Test/Replace Directory" in the Menu Bar
4. Observe the Console
Expected result: An error stating that the destination path failed to be deleted is thrown
Actual result: An error stating the destination path already exists is thrown
Reproducible with: 2021.3.34f1, 2022.3.19f1, 2023.2.9f1, 2023.3.0b5
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ExtractHandles when shutting down the Editor in a specific scene while Burst jobs are in progress
- Unity Hub closes with no "Project is currently open" window when selecting an already open project from the Projects list
- The Hub freezes indefinitely when copy/pasting a lot of characters in the “Set project display name” Hub window since it has no character limit
- Inconsistent “Favorites” icon highlight in Unity Hub
- "Could not connect project. Try again" Hub error is not informative/does not inform the user with the reason why it failed when connecting a project to cloud with a name that's too long
Add comment