Don't fail if SVN style symlink points to missing file
This commit is contained in:
parent
340f54c8b0
commit
d0e4852be6
|
@ -302,7 +302,10 @@ Zotero.Schema = new function(){
|
||||||
while (entries.hasMoreElements()) {
|
while (entries.hasMoreElements()) {
|
||||||
var file = entries.getNext();
|
var file = entries.getNext();
|
||||||
file.QueryInterface(Components.interfaces.nsIFile);
|
file.QueryInterface(Components.interfaces.nsIFile);
|
||||||
if (!file.leafName.match(fileNameRE) || file.isDirectory()) {
|
// File might not exist in an SVN build with style symlinks
|
||||||
|
if (!file.exists()
|
||||||
|
|| !file.leafName.match(fileNameRE)
|
||||||
|
|| file.isDirectory()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
var fileModTime = Math.round(file.lastModifiedTime / 1000);
|
var fileModTime = Math.round(file.lastModifiedTime / 1000);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user