ignore partial downloads in list, cleanup partials

This commit is contained in:
j 2015-04-11 12:39:19 +02:00
parent d8e23fe6d1
commit 122342db11

View file

@ -16,7 +16,7 @@ pandora.fs = (function() {
that.fs = fs;
that.fs.root.createReader().readEntries(function(results) {
results.forEach(function(entry) {
if (entry.isFile) {
if (entry.isFile && !Ox.startsWith(entry.name, 'partial::')) {
that.local[entry.name] = entry.toURL();
}
});
@ -140,6 +140,10 @@ pandora.fs = (function() {
}, function() { // file not found
++done == count && callback();
});
// remove partial file too
that.fs.root.getFile('partial::' + name, {create: false}, function(fileEntry) {
fileEntry.remove(function(e) {});
});
});
});
});