Index: lib/filesystem/io.js |
=================================================================== |
--- a/lib/filesystem/io.js |
+++ b/lib/filesystem/io.js |
@@ -69,6 +69,12 @@ |
{ |
fileEntry.file(function(file) |
{ |
+ if (file.size == 0) |
+ { |
+ callback("File is empty"); |
+ return; |
+ } |
+ |
var reader = new FileReader(); |
reader.onloadend = function() |
{ |