Skip to content

Commit 2d65dc1

Browse files
author
devAxeon
committed
cordova shell.download(...) use stream chunks to write file (RAM enhancement) and have a progress callback
1 parent ca43745 commit 2d65dc1

File tree

5 files changed

+226
-63
lines changed

5 files changed

+226
-63
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ shell.copy('cdvfile://localhost/persistent/data/hello.txt', cordova.file.dataDir
1414
1515
shell.ls(cordova.file.dataDirectory);
1616
17-
shell.download('https://www.w3.org/TR/PNG/iso_8859-1.txt', 'cdvfile://localhost/persistent/data/iso.txt');
17+
shell.download('https://www.w3.org/TR/PNG/iso_8859-1.txt', 'cdvfile://localhost/persistent/data/iso.txt', progressCallback);
1818
1919
shell.readText('cdvfile://localhost/persistent/data/iso.txt')
2020

dist/cordova-shell.js

Lines changed: 111 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)