Search Issue Tracker

Fixed in 2021.2.X

Fixed in 2020.3.X, 2021.1.X

Votes

0

Found in

2020.3.1f1

2021.1.0a5

Issue ID

1334082

Regression

Yes

Reimporting a sample deletes all non-empty parent folders recursively until the project folder.

Packman

-

Repro steps:
1. Install "Input System" package.
2. Import 2 of the available samples.
3. Create a new C# script file inside each folder from the samples folder up to the Assets folder.
4. Click "Import again" in the Package Manager UI.

Expected Result:
The sample is reimported correctly and no other files are affected.

Actual Result:
The Assets folder is deleted with any other files inside the project folder. There is a message in the console saying "Cannot delete directory <path to your project directory>". Unity is frozen while trying to fix all the missing files. Eventually, the editor starts to work again, but all deleted files were lost.

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.