Mercurial > octave-nkf
diff src/load-path.cc @ 9764:7922a24f78c0
fix relative directory caching
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 01 Nov 2009 12:36:06 -0500 |
parents | d6b2b708b6b0 |
children | 8e345f2fe4d6 |
line wrap: on
line diff
--- a/src/load-path.cc Thu Oct 29 18:39:34 2009 -0400 +++ b/src/load-path.cc Sun Nov 01 12:36:06 2009 -0500 @@ -80,8 +80,12 @@ initialize (); else *this = di; + } + else + { + // We haven't seen this directory before. - return; + initialize (); } } catch (octave_execution_exception) @@ -92,8 +96,7 @@ error_state = 0; } } - - if (fs.mtime () + fs.time_resolution () > dir_time_last_checked) + else if (fs.mtime () + fs.time_resolution () > dir_time_last_checked) initialize (); } else