Search Issue Tracker
By Design
Votes
1
Found in
2022.3.62f1
6000.0.49f1
6000.1.4f1
6000.2.0b2
6000.3.0a1
Issue ID
UUM-105719
Regression
No
FileUtil.CopyFileOrDirectory throws IOException when destination parent folder does not exist
How to reproduce:
1. Open the attached “IN-101613” project
2. Open the “SampleScene”
3. Enter Play Mode
4. Observe the Console and the Project tab
Expected results: Required folders are created and file/directory is copied, no errors are thrown
Actual result: The file/directory fails to copy, “IOException: Failed to Copy File / Directory” is thrown
Reproducible with: 2022.1.0a1, 2022.3.62f1, 6000.0.49f1, 6000.1.4f1, 6000.2.0b2
Reproducible on: Windows 11
Not reproducible on: No other environments tested
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
- UI Shader Graph throws 'UnityDisplayOrientationPreTransform' error when Android is the selected platform
- Editor memory leak when entering and exiting Play Mode in a blank URP project
- Point Lights with the "Hard Shadows" Shadow Type appear as black squares when Rendering Path is set to "Forward+" or "Deferred+"
- Error SGICE002 is wrongly shown when the tuple elements in a foreach statement don’t match the order of the tuple returned by SystemAPI.Query
- LockBufferForWrite incorrectly rejects valid writes when GraphicsBuffer size exceeds 32-bit limit due to integer overflow
Resolution Note:
Destination directory should be prepared ahead of calling this method.
The copy operation is designed to be atomic thus retriable.