0

ftp 経由でファイルを受信して​​処理した後、削除しようとしましたが、FB は次のエラーをスローします: SecurityError: fileWriteResource.

私はまだデバッグ中です。私のアプリは Android とデスクトップで動作します。コードに従います:

var xmlFile : File = new File();
if(app == 'ANDROID'){
    xmlFile = new File('/mnt/sdcard/SAG/' + dbPath); // PARA ANDROID 
    if(xmlFile.exists ){
        xmlFile.deleteFile();                       
    }
}else if(app == 'DESKTOP'){
    //app == DESKTOP
    xmlFile = File.applicationDirectory.resolvePath(arquivos.source[itemIndex].name);
    if(xmlFile.exists ){
        xmlFile.deleteFile();//the file exists, but don´t delete because a error
    }
}
4

0 に答える 0