Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2018.4.X, 2019.4.X, 2020.2.X
Votes
0
Found in
2018.4
2020.2.0b7
2021.1
Issue ID
1286554
Regression
No
Directory.GetFiles() ignores "." symbol when built with IL2CPP
Reproduction steps:
1. Download and open the submitted project "directory_get_files.zip"
2. Build and run the project
Expected result: "/AAA" and "/AAA.file" are printed
Actual result: "/AAA", "/AAA.file", "/AAAB" and "/AAABC" are printed
Reproducible with: 2018.4.29f1, 2019.4.15f1, 2020.1.15f1, 2020.2.0b13, 2021.1.0a7
Reproduces on:
VLNQA00012, Samsung Galaxy S6 (SM-G920F), Android 7.0, CPU: Exynos 7 Octa 7420, GPU: Mali-T760
----------, Samsung Galaxy S9 (SM-G960F), Android 10, CPU: NOT FOUND, GPU: Mali-G72
VLNQA00321, Xiaomi MI 9 (MI 9), Android 9, CPU: Snapdragon 855 SM8150, GPU: Adreno (TM) 640
iPhone 6S (iOS 13.3.1)
MacOS Standalone
Does not reproduce on:
Windows Standalone
The following code causes the issue:
void Start()
{
Create("AAA");
Create("AAA.file");
Create("AAAB");
Create("AAABC");
string persitentPath = Application.persistentDataPath;
var files = Directory.GetFiles(persitentPath, "AAA.*");
}
Notes:
The issue does not reproduce when using Mono scripting backend.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Joint Physics result in unexpected behaviors when used for articulated vehicles like buses or trucks
- 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 which worked with TMP Font Asset Creator
Add comment