File.Move to SD card


G

Guest

Ahg..
A feature in my application allows the user to move files (program resources) from one folder to another (with the idea of allowing the user to store the resources in a SD card if so desired
This code works with out a problem when transferring files from one folder in the device to any other folder on the device. However, the same code fails when transferring files to a folder in the SD card
All I get is an IOException and no other revealing information (even using System.SR
It only happens with a few files towards the end of the process and not necessarily the same files
Note that I am transferring a large number of files 192 for example.
It feel like something is going on that does not like the fact that I am transferring so many files, some sort of caching

I use File.Move( ... ) to transfer the files

Is there something I can close or reset to prevent this from happening

Note, no I am not going over the size limit of the SD card. The SD card holds 64MB and all the files add up to 7 MB

Thanks
 
Ad

Advertisements

R

Richard L Rosenheim

My understanding is that SD, CF, etc. uses FAT for their file system. FAT
does have a limitation on the number of files that can be stored in the
root directory. Could this be the issue you are encountering?

Richard Rosenheim


fhunter said:
Ahg...
A feature in my application allows the user to move files (program
resources) from one folder to another (with the idea of allowing the user to
store the resources in a SD card if so desired.
This code works with out a problem when transferring files from one folder
in the device to any other folder on the device. However, the same code
fails when transferring files to a folder in the SD card.
All I get is an IOException and no other revealing information (even using System.SR)
It only happens with a few files towards the end of the process and not necessarily the same files.
Note that I am transferring a large number of files 192 for example.
It feel like something is going on that does not like the fact that I am
transferring so many files, some sort of caching?
I use File.Move( ... ) to transfer the files.

Is there something I can close or reset to prevent this from happening?

Note, no I am not going over the size limit of the SD card. The SD card
holds 64MB and all the files add up to 7 MB.
 
Ad

Advertisements

G

Guest

Richard

Thank you so very much. That is precisely the problem we where having! We added a folder to the root directory and everything works fine now
Outstanding catch. Thank you very much
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top