Standard RTL Path Functions across the Supported Target Platforms
Go Up to Using the RTL in MultiDevice Applications
The following table lists the RTL file path functions that are appropriate for each of the Supported Target Platforms.
For example, if you need to access or reference the home path of your application, this table shows how to construct the reference for each supported platform.
Function \ Platform  Windows  OSX  iOS  Android  Linux 

System.SysUtils.pas  
CSIDL_APPDATA 
GetEnvironmentVariable('HOME') 
GetEnvironmentVariable('HOME') 
GetFilesDir > Internal Memory 
GetEnvironmentVariable('HOME')  
System.IOUtils.pas  
CSIDL_APPDATA A typical result is:

A typical result is:

A typical result is:

A typical result is:

A typical result is:
 
User 'temp' folder A typical result is:

A typical result is:

A typical result is:

GetExternalFilesDir+'/tmp/' A typical result is:

A typical result is:  
Same path of Executable file. If the 
NSLibraryDirectory A typical result is:

NSLibraryDirectory A typical result is:

GetLibraryPath A typical result is:

A typical result is equal to  
CSIDL_PERSONAL A typical result is:

NSDocumentDirectory A typical result is:

NSDocumentDirectory A typical result is:

GetFilesDir > Internal Memory 
A typical result is:
 
CSIDL_COMMON_DOCUMENTS A typical result is:

NSSharedPublicDirectory A typical result is:

NSSharedPublicDirectory A typical result is:

GetExternalFilesDir > External Memory If device has external storage (for example, SD card), this method returns path name inside external storage. If device has no external storage, this method returns somewhere inside internal storage. A typical result is:

A typical result is:
 
CSIDL_LOCAL_APPDATA A typical result is:

NSCachesDirectory A typical result is:

NSCachesDirectory A typical result is:

GetCacheDir > Internal Memory A typical result is: 
A typical result is:  
CSIDL_MYPICTURES A typical result is:

NSPicturesDirectory A typical result is: 
NSPicturesDirectory A typical result is:

GetExternalPicturesDir > External Memory A typical result is: 
A typical result is:  
CSIDL_COMMON_PICTURES A typical result is:

NSSharedPublicDirectory A typical result is: 
NSSharedPublicDirectory A typical result is:

GetSharedPicturesDir > External Memory Shared A typical result is: 
A typical result is:  
CSIDL_COMMON_APPDATA A typical result is:
Vista or later: 
NSSharedPublicDirectory A typical result is: 
NSSharedPublicDirectory A typical result is:

GetExternalFilesDir > External A typical result is: 
A typical result is:  
CSIDL_MYPICTURES A typical result is:

NSPicturesDirectory A typical result is: 
NSPicturesDirectory A typical result is:

GetExternalCameraDir > External Memory A typical result is: 
A typical result is:  
CSIDL_COMMON_PICTURES A typical result is:

NSSharedPublicDirectory A typical result is: 
NSSharedPublicDirectory A typical result is:

GetSharedCameraDir > External Memory Shared A typical result is: 
A typical result is:  
CSIDL_MYMUSIC A typical result is:

NSMusicDirectory A typical result is: 
NSMusicDirectory A typical result is:

GetExternalMusicDir > External Memory A typical result is: 
A typical result is:  
CSIDL_COMMON_MUSIC A typical result is:

NSSharedPublicDirectory A typical result is: 
NSSharedPublicDirectory A typical result is:

GetSharedMusicDir > External Memory Shared A typical result is: 
A typical result is:  
CSIDL_MYVIDEO A typical result is:

NSMoviesDirectory A typical result is:

NSMoviesDirectory A typical result is:

GetExternalMoviesDir > External Memory A typical result is: 
A typical result is:  
CSIDL_COMMON_VIDEO A typical result is:

NSSharedPublicDirectory A typical result is: 
NSSharedPublicDirectory A typical result is:

GetSharedMoviesDir > External Memory Shared A typical result is: 
A typical result is:  
CSIDL_MYMUSIC A typical result is:

NSMusicDirectory A typical result is: 
NSMusicDirectory A typical result is:

GetExternalAlarmsDir > External Memory A typical result is: 
A typical result is:  
CSIDL_COMMON_MUSIC A typical result is:

NSSharedPublicDirectory A typical result is:

NSSharedPublicDirectory A typical result is:

GetSharedAlarmsDir > External Memory Shared A typical result is: 
A typical result is:  
TPath.GetRingtonesPath (Same as TPath.GetMusicPath) The file system directory that serves as a common repository for ringtones sound files. 
CSIDL_MYMUSIC A typical result is:

NSMusicDirectory A typical result is: 
NSMusicDirectory A typical result is:

GetExternalRingtonesDir > External Memory A typical result is: 
A typical result is: 
CSIDL_COMMON_MUSIC A typical result is:

NSSharedPublicDirectory A typical result is: 
NSSharedPublicDirectory A typical result is:

GetSharedRingtonesDir > External Memory Shared A typical result is: 
A typical result is:  
CSIDL_LOCAL_APPDATA A typical result is:

NSDownloadsDirectory A typical result is: 
NSDownloadsDirectory A typical result is:

GetExternalDownloadsDir > External Memory A typical result is: 
A typical result is:  
CSIDL_COMMON_APPDATA A typical result is:

NSSharedPublicDirectory A typical result is: 
NSSharedPublicDirectory A typical result is:

GetSharedDownloadsDir > External Memory Shared A typical result is: 
A typical result is: 