MCPcopy
hub / github.com/moxiecode/plupload / _readItems

Function _readItems

js/moxie.js:7491–7511  ·  view source on GitHub ↗
(items, cb)

Source from the content-addressed store, hash-verified

7489
7490
7491 function _readItems(items, cb) {
7492 var entries = [];
7493 Basic.each(items, function(item) {
7494 var entry = item.webkitGetAsEntry();
7495 // Address #998 (https://code.google.com/p/chromium/issues/detail?id=332579)
7496 if (entry) {
7497 // file() fails on OSX when the filename contains a special character (e.g. umlaut): see #61
7498 if (entry.isFile) {
7499 _addFile(item.getAsFile(), entry.fullPath);
7500 } else {
7501 entries.push(entry);
7502 }
7503 }
7504 });
7505
7506 if (entries.length) {
7507 _readEntries(entries, cb);
7508 } else {
7509 cb();
7510 }
7511 }
7512
7513
7514 function _readEntries(entries, cb) {

Callers 1

FileDropFunction · 0.85

Calls 3

_addFileFunction · 0.85
_readEntriesFunction · 0.85
cbFunction · 0.85

Tested by

no test coverage detected