Add another DirectoryIterator entry.isDir workaround for Travis

This commit is contained in:
Dan Stillman 2016-11-27 20:00:10 -05:00
parent 837ae0444d
commit 45a8178fe0

View file

@ -544,6 +544,12 @@ Zotero.File = new function(){
let entry = yield iterator.next();
let dest = newDir + entry.path.substr(rootDir.length);
// entry.isDir can be false for some reason on Travis, causing spurious test failures
if (Zotero.automatedTest && !entry.isDir && (yield OS.File.stat(entry.path)).isDir) {
Zotero.debug("Overriding isDir for " + entry.path);
entry.isDir = true;
}
// Move files in directory
if (!entry.isDir) {
try {