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

Quality of Life

-

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

  1. Resolution Note (fix version 2022.2):

    Fixed in 2022.2.0a1

  2. Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0b5

  3. Resolution Note (fix version 2021.2):

    Fixed in 2021.2.11f1

  4. Resolution Note (fix version 2020.3):

    Fixed in 2020.3.29f1

  5. Resolution Note (fix version 2019.4):

    Fixed in 2019.4.38f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.