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
- Standalone Player crashes with "TDerived GetOrLoad<TDerived>() where TDerived : T" when IL2CPP Code generation is set to "Faster (smaller) Builds"
- IndexOutOfRangeException and InvalidOperationException when logging XML string
- Script missing in "Assets/Settings/Mobile_Renderer/GlobalVolumeFeature" of "com.unity.template.urp-blank" template
- “Font Asset Creator - Error Code [Invalid_File_Structure]…“ error is logged when generating Font Assets from fonts with meta files from previous Editor versions
- Input.mousePosition returns (NaN, NaN, 0.00) when Scene view is opened
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