file utility More...
#include "ZFFile_fwd.h"
Go to the source code of this file.
Namespaces | |
namespace | ZFGlobalEvent |
Functions | |
zfstring | ZFPathForCwd () |
get current working directory | |
zfbool | ZFPathForCwd (const zfstring &path) |
change current working directory | |
zfstring | ZFPathForCwdOrModule () |
util method to access ZFPathForCwd, return ZFPathForModule if not available | |
const zfstring & | ZFPathForModule () |
get module's parent's path, e.g. "/path" | |
const zfstring & | ZFPathForModuleFile () |
get module's path, e.g. "/path/module.exe" | |
zfidentity | ZFGlobalEvent::E_ZFPathForSettingOnUpdate (void) |
see ZFObject::observerNotify | |
const zfstring & | ZFPathForSetting () |
get a proper data path that app can save settings to | |
void | ZFPathForSetting (const zfstring &path) |
change the data path, null to use defalut path | |
zfidentity | ZFGlobalEvent::E_ZFPathForStorageOnUpdate (void) |
see ZFObject::observerNotify | |
const zfstring & | ZFPathForStorage () |
get a proper storage path that app can write files to | |
void | ZFPathForStorage (const zfstring &path) |
change the storage path, null to use defalut path | |
zfidentity | ZFGlobalEvent::E_ZFPathForStorageSharedOnUpdate (void) |
see ZFObject::observerNotify | |
const zfstring & | ZFPathForStorageShared () |
get a proper shared storage path that app can write files to, and other app can access | |
void | ZFPathForStorageShared (const zfstring &path) |
change the storage path, null to use defalut path | |
zfidentity | ZFGlobalEvent::E_ZFPathForCacheOnUpdate (void) |
see ZFObject::observerNotify | |
zfidentity | ZFGlobalEvent::E_ZFPathForCacheBeforeClear (void) |
see ZFObject::observerNotify | |
zfidentity | ZFGlobalEvent::E_ZFPathForCacheAfterClear (void) |
see ZFObject::observerNotify | |
const zfstring & | ZFPathForCache () |
get a proper cache path that app can write files to | |
void | ZFPathForCache (const zfstring &path) |
change the cache path, null to use defalut path | |
void | ZFPathForCacheClear () |
clear all caches under ZFPathForCache | |
file utility
|
extern |
get current working directory
return null if not available
change current working directory
return false if failed
|
extern |
get module's parent's path, e.g. "/path"
path is ensured to use '/' as separator, and no extra separator would be added to tail
|
extern |
get module's path, e.g. "/path/module.exe"
path is ensured to use '/' as separator
it's not ensured module path is actually executable's path, use other path types for data storage such as ZFPathForSetting
|
extern |
get a proper data path that app can save settings to
path is ensured to use '/' as separator, and no extra separator would be added to tail
|
extern |
get a proper storage path that app can write files to
path is ensured to use '/' as separator, and no extra separator would be added to tail
|
extern |
get a proper shared storage path that app can write files to, and other app can access
note, this path may or may not be writable, maybe external storage path or user's home path, write with caution and only if necessary
path is ensured to use '/' as separator, and no extra separator would be added to tail
|
extern |
get a proper cache path that app can write files to
cache is used for temp files only, may or may not be deleted automatically
path is ensured to use '/' as separator, and no extra separator would be added to tail