1
utFAT / utMakeDirectory, can not make sub folder
« on: October 07, 2013, 01:44:33 PM »
Hi Mark
I am facing a few problems with the utMakeDirectory function.
From what I understand it should be possible to make a folder with in another folder just by doing like this:dir1/dir1?
But when use this code:
if (ptr_utDirectory2 == 0) {
ptr_utDirectory2 = utAllocateDirectory(DISK_D, 100); // allocate a directory for use by this module associated with D: and reserve its path name string length
res = utOpenDirectory(0, ptr_utDirectory2);
}
res=utMakeDirectory((int8*)"public", ptr_utDirectory2);
res=utMakeDirectory((int8*)"public/steen", ptr_utDirectory2);
res=utMakeDirectory((int8*)"public/steen/anette", ptr_utDirectory2);
I get a folder public and steen created in the root of my SD card and the folder anette is not created, the utMakeDirectory returns UTFAT_PATH_NOT_FOUND.
What am I doing wrong?
Further more I notes that LNF is not supported when creating folder, is this possible in any way.
I am looking forward to hear from you.
Regards
Steen
I am facing a few problems with the utMakeDirectory function.
From what I understand it should be possible to make a folder with in another folder just by doing like this:dir1/dir1?
But when use this code:
if (ptr_utDirectory2 == 0) {
ptr_utDirectory2 = utAllocateDirectory(DISK_D, 100); // allocate a directory for use by this module associated with D: and reserve its path name string length
res = utOpenDirectory(0, ptr_utDirectory2);
}
res=utMakeDirectory((int8*)"public", ptr_utDirectory2);
res=utMakeDirectory((int8*)"public/steen", ptr_utDirectory2);
res=utMakeDirectory((int8*)"public/steen/anette", ptr_utDirectory2);
I get a folder public and steen created in the root of my SD card and the folder anette is not created, the utMakeDirectory returns UTFAT_PATH_NOT_FOUND.
What am I doing wrong?
Further more I notes that LNF is not supported when creating folder, is this possible in any way.
I am looking forward to hear from you.
Regards
Steen