diff libinterp/corefcn/load-path.h @ 25957:d8993fe43a64

remove nonexistent directories when updating loadpath * load-path.cc (load_path::dir_path::update): Return status. If stat fails, return false. Change all uses. (load_path::update): If dir_info::update fails, skip directory.
author John W. Eaton <jwe@octave.org>
date Tue, 23 Oct 2018 15:52:42 -0400
parents 627d6bde9b8d
children 00f796120a6d
line wrap: on
line diff
--- a/libinterp/corefcn/load-path.h	Mon Oct 22 16:51:20 2018 -0400
+++ b/libinterp/corefcn/load-path.h	Tue Oct 23 15:52:42 2018 -0400
@@ -276,7 +276,7 @@
 
       dir_info& operator = (const dir_info&) = default;
 
-      void update (void);
+      bool update (void);
 
       std::string dir_name;
       std::string abs_dir_name;