Reputation: 883
how to know the folder as write permission in air application..in my application i am saving txt file in folder,so that i need to test that folder as write permission...
var file:File = File.desktopDirectory.resolvePath("TxtFolder/DataFile.txt");
i need to check "TxtFolder" has write permission...? before saving the file(DataFile.txt)..how can i do it in flex Air as3
Thanks In Advance...
Upvotes: 0
Views: 1179
Reputation: 11
Run the AIR app as administrator and you can even write inside system32 folder of windows. That means anywhere, just anywhere.
Upvotes: 1
Reputation: 4340
You can write to a file with AIR only if the file is under "applicationStorageDirectory". This is the only folder that has write permision.
If some know more please correct me.
Upvotes: -1
Reputation: 5480
You can handle ioError event which FileReference dispatches when you don't have permissions to write into directory.
Upvotes: 1