1
utFAT / Re: utMakeDirectory, can not make sub folder
« on: October 08, 2013, 09:49:32 AM »
Hi Mark
I have looked at the problem with creating the folders and this is what I found sofare.
I am using Keil uVision 4.71.2.0.
When doing like this:
res=utMakeDirectory((int8*)"public", ptr_utDirectory);
res=utMakeDirectory((int8*)"public/steen", ptr_utDirectory);
res=utMakeDirectory((int8*)"public/steen/anette", ptr_utDirectory);
res=utMakeDirectory((int8*)"public/peter", ptr_utDirectory);
res=utMakeDirectory((int8*)"public/hans", ptr_utDirectory);
I get a folder struct on the SD card looking like this:
-public
-steen
When using this code:
res=utMakeDirectory((int8*)"public", ptr_utDirectory);
utChangeDirectory("public", ptr_utDirectory);
res=utMakeDirectory((int8*)"steen", ptr_utDirectory);
utChangeDirectory("steen", ptr_utDirectory);
res=utMakeDirectory((int8*)"anette", ptr_utDirectory);
I get this struct on the SD card:
-public
|-steen
|-anette
I have been trying to debug the utMakeDirectory but are not able to locate the problem.
Hope this info can get us a bit closer to my problem?
Regards
Steen
I have looked at the problem with creating the folders and this is what I found sofare.
I am using Keil uVision 4.71.2.0.
When doing like this:
res=utMakeDirectory((int8*)"public", ptr_utDirectory);
res=utMakeDirectory((int8*)"public/steen", ptr_utDirectory);
res=utMakeDirectory((int8*)"public/steen/anette", ptr_utDirectory);
res=utMakeDirectory((int8*)"public/peter", ptr_utDirectory);
res=utMakeDirectory((int8*)"public/hans", ptr_utDirectory);
I get a folder struct on the SD card looking like this:
-public
-steen
When using this code:
res=utMakeDirectory((int8*)"public", ptr_utDirectory);
utChangeDirectory("public", ptr_utDirectory);
res=utMakeDirectory((int8*)"steen", ptr_utDirectory);
utChangeDirectory("steen", ptr_utDirectory);
res=utMakeDirectory((int8*)"anette", ptr_utDirectory);
I get this struct on the SD card:
-public
|-steen
|-anette
I have been trying to debug the utMakeDirectory but are not able to locate the problem.
Hope this info can get us a bit closer to my problem?
Regards
Steen