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
- Performance decreases significantly when instantiating a Prefab with many children
- "MissingReferenceException" error is thrown when creating a new "Standard (URP)" scene
- Silent crash when opening a specific project
- "+" shaped artifacts are rendered on UI Toolkit Buttons when the border radius is over 50%, button's opacity is set to 1 and the border has width
- All references to Sprite Atlas and AssetReferenceAtlasedSprite are removed when migrating Sprite Atlas Mode from V1 to V2
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