Mercurial > hg > octave-lyh
diff src/dirfns.cc @ 6323:ea65de49e18e
[project @ 2007-02-17 02:51:02 by jwe]
author | jwe |
---|---|
date | Sat, 17 Feb 2007 02:51:03 +0000 |
parents | a299c8a6d96e |
children | 7e958a1532c6 |
line wrap: on
line diff
--- a/src/dirfns.cc +++ b/src/dirfns.cc @@ -69,6 +69,9 @@ // directory tree. static bool Vconfirm_recursive_rmdir = true; +// The time we last time we changed directories. +octave_time Vlast_chdir_time = 0.0; + static int octave_change_to_directory (const std::string& newdir) { @@ -76,6 +79,8 @@ if (cd_ok) { + Vlast_chdir_time.stamp (); + // FIXME -- should this be handled as a list of functions // to call so users can add their own chdir handlers?