We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I believe #310 broke the previous behaviour. It was possible to provide a nested path as target file. Now it will throw an error when doing so.
(() => { const fileTransfer = new FileTransfer(); const url = 'http://cordova.apache.org/static/img/cordova_bot.png' const filePath = window.cordova.file.dataDirectory + 'nested/test.png'; fileTransfer.download( url, filePath, file => console.log(file), error => console.error(error) ); })()
Adding this code snippet after line 727
if(file == null){ file = new File(targetUri.getPath()); } file.getParentFile().mkdirs();
The text was updated successfully, but these errors were encountered:
fix issues/330
2d4d6a7
apache#330
Retting for apache#330
797280a
I apache#330 endret oppførsel seg slik at nøstede kataloger ikke ble opprettet for filen som ble lastet ned.
Fix for apache#330
f129ca5
No branches or pull requests
I believe #310 broke the previous behaviour. It was possible to provide a nested path as target file. Now it will throw an error when doing so.
Code to reproduce
Possible fix
Adding this code snippet after line 727
The text was updated successfully, but these errors were encountered: