Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
Is there a way to create a folder with a file in it (i.e. "./new_folder/new_file.txt") with Storage_Write function in SD Card or with any other SD Card APIs?
I tried to change "text_xdk.txt" to "new_folder/test_xdk.txt" and "./new_folder/test_xdk.txt" in SdCardExample, but both resulted in RETCODE_STORAGE_ERROR_IN_FILE_WRITE. Maybe I am missing something?
Thanks in advance!
For this you should use the function f_mkdir("your Path"). You can find the APIs with short descriptions in the header file "ff.h".