System.IOUtils.TPath.GetCachePath
Delphi
class function GetCachePath: string; static;
C++
static System::UnicodeString __fastcall GetCachePath();
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| function | public | System.IOUtils.pas System.IOUtils.hpp |
System.IOUtils | TPath |
説明
アプリケーションがキャッシュ ファイルを格納することができるディレクトリへのパスを返します。
アプリケーションを実行しているシステムが要求されているフォルダをサポートしていない場合、または、要求されているフォルダがシステム上に存在しない場合、この関数は代わりに空の文字列を返します。
- Windows および Mac OS X では、ユーザー固有の、アプリケーション非依存ディレクトリを指します。
- iOS および Android では、アプリケーション固有、ユーザー固有のディレクトリを指します。
| プラットフォーム | サンプル パス | パス ID |
|---|---|---|
| Windows XP | C:\Documents and Settings\<username>\Local Settings\Application Data | CSIDL_LOCAL_APPDATA |
| Windows Vista 以降 | C:\Users\<username>\AppData\Local | FOLDERID_LocalAppData |
| Mac OS X | /Users/<username>/Library/Caches | NSCachesDirectory |
| iOS デバイス | /var/mobile/Containers/Data/Application/<application ID>/Library/Caches | |
| iOS シミュレータ | /Users/<username>/Library/Developer/CoreSimulator/Devices/<Device ID>/data/Containers/Data/Application/<application ID>/Library/Caches | |
| Android | /data/data/<application ID>/cache | Context.getCacheDir |