#include <directory.h>
Static Public Member Functions | |
Operations | |
| static bool | create (const CL_String &dir_name) |
| Create directory. | |
| static bool | remove (const CL_String &dir_name, bool delete_files=false, bool delete_sub_directories=false) |
| Remove directory. | |
| static bool | set_current (const CL_String &path) |
| Change current directory. | |
| static CL_String | get_current () |
| Get current directory. | |
| static CL_String | get_appdata (const CL_StringRef &company_name, const CL_StringRef &application_name, const CL_StringRef &version, bool create_dirs_if_missing=true) |
| Returns the current user's roaming application data directory. | |
| static CL_String | get_local_appdata (const CL_StringRef &company_name, const CL_StringRef &application_name, const CL_StringRef &version, bool create_dirs_if_missing=true) |
| Returns the current user's local (nonroaming) application data directory. | |
| static CL_String | get_resourcedata (const CL_StringRef &application_name) |
| Returns the application resource data directory. | |
|
|
Create directory.
|
|
||||||||||||||||||||
|
Returns the current user's roaming application data directory.
In Windows, this functions returns special folder directory CSIDL_APPDATA appended with the application_name string. A typical path would be "C:\Documents and Settings\username\Application Data\company_name\application_name\version\". |
|
|
Get current directory.
|
|
||||||||||||||||||||
|
Returns the current user's local (nonroaming) application data directory.
In Windows, this functions returns special folder directory CSIDL_LOCAL_APPDATA appended with the application_name string. A typical path would be "C:\Documents and Settings\username\Local Settings\Application Data\company_name\application_name\version\". |
|
|
Returns the application resource data directory.
In Windows, this function returns a "Resources" subdirectory located at the executable. If the executable path is "C:\Program Files\My Application\MyApp.exe", then it will return the path "C:\Progam Files\My Application\Resources\". |
|
||||||||||||||||
|
Remove directory.
|
|
|
Change current directory.
|
1.4.6