I am working on an Air application and want to write some files to the applicationStorageDirectory.
Using Adobe's own ncode or any variation thereof:
var prefsFile:File = File.applicationStorageDirectory;
prefsFile = prefsFile.resolvePath("preferences.xml");
Throws the error:
Error: Error #3002: File or directory exists.
at flash.filesystem::File$/get applicationStorageDirectory()
Extended desktop is set in the supported profiles.
Also if I use another directory such as the documentsDirectory there is no issue. But the applicationStorageDirectory is supposed to be the one location that we can reliably use.
I would be grateful for any information.
I tried copying a file on another windows system and everything was fine. There must be some sort of permissions issue.
I deleted the applicationsStorageDirectory and tried again and it worked and continued to work even after the directory was created. I hope this helps someone having the same problem.