Use System.IoUtils.TPath
. The path to the SD card is obtained using TPath.GetDocumentsPath
, and the base directory of the application must be found using TPath.GetHomePath
.
uses
IOUtils;
var
AppPath, CardPath: string;
AppPath := TPath.GetHomePath;
CardPath :- TPath.GetDocumentsPath;
There TPath
are several more functions related to the system path, including these (and many others) - you will need to see which applications are applied to Android and iOS, since the documents are not clear)
GetTempPath
GetPublicPath
GetCameraPath
GetMusicPath
GetDownloadsPath
source
share