2020-01-23 07:51 AM
Hi all
I am able to mount both drives and open ,read,write files in both drives...now i need to copy folders from pendrive to sd card..is it possible? .fatfs don't have copydirectory function..do i need to create copydirectory function...will accessing both drives simultaneously for copying will work in fatfs?
2020-01-23 08:26 AM
You will need to write the code to do this. FatFs provides the means to enumerate thru the files in the directory, and you will need to create new files in the destination directory, and copy the data through memory with f_read/f_write, and if you want the dates/attributes to be the same you'll have to set those at the end.
2020-01-25 02:29 AM
just read from one drive and write to another drive
2020-01-28 02:35 AM
Have you tried ?
2020-01-28 04:29 AM
yeah i tried ...its working i am able to copy files and directory .but one issue i noticed is that some file (rarely)names ends with ~1
for example
test.txt will be orginal file but after copying to sdcard the filename will be te~1.txt
2020-02-03 12:57 AM
is file name length is more than 13 character ?
2020-02-03 01:39 AM
Need to be aware of LFN (Long Filename) usage when enumerating the source files/directories, and generating the destination copies.
2020-02-03 09:55 PM
yes its length is more than 13
2020-02-03 11:32 PM
thank you ...its solved ,i enabled LFN support