diff --git a/static/js/fs.js b/static/js/fs.js index 32712a96..6a897dda 100644 --- a/static/js/fs.js +++ b/static/js/fs.js @@ -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) {}); + }); }); }); });