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 43f9680e50
commit ebef88143f

View File

@ -302,7 +302,10 @@ Zotero.Schema = new function(){
while (entries.hasMoreElements()) {
var file = entries.getNext();
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;
}
var fileModTime = Math.round(file.lastModifiedTime / 1000);