html5 drag and drop - items.webkitGetAsEntry() method doesn't exist
===

hello i am trying to drag and drop files into my filesystem using chrome, but i get the following error in the console:

    var dnd = new DnDFileController('body', function(files, e) {
        var items = e.dataTransfer.items;
        for (var i = 0, item; item = items[i]; ++i) {
          traverseFileTree(item.webkitGetAsEntry());
    **Uncaught TypeError: Object #<DataTransferItem> has no method 'webkitGetAsEntry'**
        }
      });

i also tried to add the method in the loop like this:

    for (var i = 0, item; item = items[i].webkitGetAsEntry();; ++i) {
          traverseFileTree(item);
        }

but i get the same error, any ideas? thanks.
