I need to create a new folder and save some data in it. The code is as follow:
var list:Array=reader.getEntries();
for(var i:uint=0;i < list.length;i++)
{
var bytes:ByteArray=reader.unzip(list[i]);
var fileStream:FileStream=new FileStream();
fileStream.open(dir.resolvePath( list[i].getFilename() ),FileMode.WRITE);
fileStream.writeBytes(bytes,0,bytes.length);
}
fileStream.close();
The code below is for creating the directory dir:
dir=File.applicationStorageDirectory.resolvePath(dirname);
dir.createDirectory();
But whenever I run this code I am getting this
Error #3001: File or directory access denied.
I have given the reqd permissions in the blackberry_tablet.xml i.e. access_shared.
P.S. I am using coltware_airxzip.swf for extract files from a zip archive which I am storing in the array list.