I have been working on a program that copies the contents of a folder on someone's desktop to the root directory of a usb drive. Everytime I try to use copyToAsync() or copyTo() to copy the directory from the desktop to the USB root directory I get a "Error #3012: Cannot delete file or directory." I can use a recursive loop to copy all the files individually to the root of the USB and that works. I can copy the directory to a folder inside the root directory of the USB and that works. Here is a link to a similar problem to mine: http://forums.adobe.com/thread/25548?tstart=-1 . I doesn't look like they ever solved the issue and my USB drive is not read-only and I have permissions to write to the drive. Please advise.....Thanks!
↧