MS Edge - readEntries() doesn't work

55 views
Skip to first unread message

Daniel Kln

unread,
Jun 7, 2017, 11:10:30 AM6/7/17
to GWT Users
Hello everyone,

i want to traverse a file system like in following example:

function traverse(entry, path) { 
  path = path || ""; 
  if (entry.isFile) { 
    // Get file 
    item.file(function(file) { 
      console.log("File:", path + file.name); 
    }); 
  } else if (entry.isDirectory) { 
    // Get folder contents 
    var dirReader = entry.createReader(); 
    dirReader.readEntries(function(entries) { 
      for (var i = 0; i < entries.length; i++) { 
        traverse(entries[i], path + entry.name + "/"); 
      } 
    }); 
  } 
} 

dropArea.addEventListener("drop", function(e) { 
  e.preventDefault(); 
  var items = event.dataTransfer.items; 
  for (var i = 0; i < items.length; i++) { 
    var entry = items[i].webkitGetAsEntry(); 
    if (entry) { 
      traverse(entry); 
    } 
  } 
}, false);


My problem is, that in MS Edge it doesn't work. the error callback just returns 'unknown error'.
And i have really no idea why it is not working in MS Edge. FF and Chrome are ok.

I am using GWT 2.7 --> an update to 2.8 is not possible because i have to use Java 6.

I really hope that anyone of you has any idea for me

Best Regards

Daniel

Juan Pablo Gardella

unread,
Jun 7, 2017, 11:14:53 AM6/7/17
to GWT Users

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages