Maybe fix zipDirectory() test failures on Travis
This commit is contained in:
parent
ec212119cc
commit
2c2a5a3787
1 changed files with 5 additions and 2 deletions
|
@ -733,8 +733,11 @@ Zotero.File = new function(){
|
||||||
try {
|
try {
|
||||||
iterator = new OS.File.DirectoryIterator(path);
|
iterator = new OS.File.DirectoryIterator(path);
|
||||||
yield iterator.forEach(Zotero.Promise.coroutine(function* (entry) {
|
yield iterator.forEach(Zotero.Promise.coroutine(function* (entry) {
|
||||||
Zotero.debug(entry);
|
// entry.isDir can be false for some reason on Travis, causing spurious test failures
|
||||||
Zotero.debug((yield OS.File.stat(entry.path)).isDir);
|
if (Zotero.isLinux && !entry.isDir && (yield OS.File.stat(entry.path)).isDir) {
|
||||||
|
Zotero.debug("Overriding isDir for " + entry.path);
|
||||||
|
entry.isDir = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (entry.isSymLink) {
|
if (entry.isSymLink) {
|
||||||
Zotero.debug("Skipping symlink " + entry.name);
|
Zotero.debug("Skipping symlink " + entry.name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue