03-21-2013 06:25 PM
File.deleteDirectory(true) and File.deleteDirectoryAsync(true) fail when deleting a directory on the SD card that contains files or subdirectories. The "true" parameter indicates that the delete operation should be recursive and delete any files or subdirectories.
deleteDirectory throws a "Error #3001: File or directory access denied." exception.
deleteDirectoryAsync fires an IOErrorEvent.
Works OK on the internal device memory, or when the directory is empty.
OS version: 10.0.10.648
AIR SDK version: 3.1.1
AIR runtime version: 184.108.40.206
03-22-2013 07:56 AM
03-23-2013 10:12 AM
03-24-2013 11:01 AM
It's just a bug. I've worked around it. You can stop troubleshooting now ;-)
MicroSD has no lock tab. And if it did, it would prevent creating the directory in the first place.
04-02-2013 02:50 PM