From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetHomePath: string;


extern DELPHI_PACKAGE System::UnicodeString __fastcall GetHomePath(void)/* overload */;


Type Visibility Source Unit Parent
function public
System.SysUtils System.SysUtils


Returns the path to the home of application's writable scratch directory or storage. Note: Do not use this method for new development. In particular, if you are doing multi-device development, we recommend that you use the more platform-agnostic implementation, System.IOUtils.TPath.GetHomePath.

Specifically, System.SysUtils.GetHomePath returns the current user's AppData folder on Windows, and returns the path to the current user's home directory on Mac OS X. On iOS, GetHomePath returns the iOS app's local directory, which is individually defined for each instance and each iOS device.

You can use GetHomePath to store user-specific files for your application.

See Also