ignore partial downloads in list, cleanup partials
This commit is contained in:
parent
d8e23fe6d1
commit
122342db11
1 changed files with 5 additions and 1 deletions
|
@ -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) {});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue