Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.2.X, 2022.1.X
Votes
1
Found in
2019.4
2020.3
2020.3.23f1
2021.2
2022.1
Issue ID
1382446
Regression
No
FileUtil.DeleteFileOrDirectory deletes the entire project folder when it is passed a null value
Reproduction steps:
1. Open the attached project "Case_1382446"
2. In the Menu Bar select "FileUtil-> Execute"
Expected result: An error is thrown or a warning that you are attempting to delete the project
Actual result: The entire project folder is deleted
Reproducible with: 2019.4.33f1, 2020.3.23f1, 2021.2.4f1, 2022.1.0a16
Notes:
- Issue reproduces with both a "null" value and an empty string ("") passed to the method
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Shader Compilation for projects with lots of Shaders can be slow (i.e. VFX Graph asset heavy projects)
- Crash on RebuildTransformHierarchyOrMarkForDestruction when opening a scene
- The Editor hangs when opening a project that uses local packages and Version Control
- Area Light is culled when Camera Frustrum is outside the lights range
- The characters of the bottom option in the Scene View Debug Draw Mode dropdown menu are cut off
Resolution Note (fix version 2022.2):
Fixed in 2022.2.0a1
Resolution Note (fix version 2022.1):
Fixed in 2022.1.0b5
Resolution Note (fix version 2021.2):
Fixed in 2021.2.11f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.29f1
Resolution Note (fix version 2019.4):
Fixed in 2019.4.38f1