#include <sys/types.h>
|
#include <sys/stat.h>
|
#include <wchar.h>
|
int
wmkdir (const wchar_t *path, mode_t mode); |
Note: mode values will be ignored while directory creation.Default working directoy of a process is initalized to C: rivate ID (UID of the calling application), and any data written into this C: rivate ID directory persists between phone resets.
Limitation: Parent directory time stamps will not be updated with new directory creation.
#include <sys/stat.h> #include <wchar.h> #include <stdio.h> int main() { if(wmkdir(L"Example" , 0666) < 0 ) { printf("Directory creation failed \n"); return -1; } printf("Directory Example created \n"); return 0; }
Output
Directory Example created
[ENAMETOOLONG] | |
A component of a pathname exceeded 255 characters. | |
[ENOENT] | |
The named file does not exist. | |
[EINVAL] | |
Invalid argument. | |
[EEXIST] | |
File with the same name already exists.
|
|
© 2005-2007 Nokia |