You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/19 12:23:56 UTC

[GitHub] [cordova-plugin-file] weverkley opened a new issue #361: Error when deleting multiple files

weverkley opened a new issue #361: Error when deleting multiple files
URL: https://github.com/apache/cordova-plugin-file/issues/361
 
 
   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   Delete all files selected based on path/name.
   
   ### What does actually happen?
   Error(5) encoding_error
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   It only deletes the first file and stop working, i cant delete any file after this error is show.
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
           var promises = [];
           this.items.map(i => {
             var t = i.path.split('/');
             var name = t.pop();
             var path = t.join('/');
             promises.push(this.fileService.deleteFile(path, name));
           });
   
           Promise.all(promises).then(result => {
             this.select = false;
             this.updateBuilding();
           }).catch(err => {
             console.log(err);
           })
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   Android
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org