The following code works with Delphi 10.2.2 Tokyo, but not with Delphi 10.3 Rio.
I tried the code on two devices (actually it's an old code which already worked).
strCoverPath := System.IOUtils.TPath.GetSharedMusicPath;
strCoverPath := Copy(strCoverPath, 0, strCoverPath.Length - 5) + 'Mp3PlayerNG/';
if ForceDirectories(strCoverPath + 'images') then
blnDirExists := true;
The value of strCoverPath is: '/storage/emulated/0/Mp3PlayerNG/'. Running the code on Delphi 10.2.2 Tokyo, everything works well. The directories are created and the application works fine.
Running the code on Delphi 10.3, the directories are NOT created. There is NO errormessage or anything I can see. Without the directories the application won't work, because several files have to be stored in the directories.
Does anyone know how to solve this problem? I couldn't find anything searching the internet. Thanks in advance!