Don't fail if SVN style symlink points to missing file

This commit is contained in:
Dan Stillman 2008-09-16 21:39:02 +00:00
parent 340f54c8b0
commit d0e4852be6

View File

@ -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);