Mercurial > octave
diff liboctave/system/file-ops.cc @ 21736:0504351a45e6
use namespace for file_stat classes
* file-stat.h, file-stat.cc: Put base_file_stat, file_stat, and
file_fstat in octave::sys namespace. Change all uses.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 19 May 2016 01:22:06 -0400 |
parents | 60212efcd9cb |
children | 71d8a9a0642c |
line wrap: on
line diff
--- a/liboctave/system/file-ops.cc Thu May 19 01:05:45 2016 -0400 +++ b/liboctave/system/file-ops.cc Thu May 19 01:22:06 2016 -0400 @@ -595,7 +595,7 @@ std::string fullnm = name + octave::sys::file_ops::dir_sep_str () + nm; // Get info about the file. Don't follow links. - file_stat fs (fullnm, false); + octave::sys::file_stat fs (fullnm, false); if (fs) { @@ -688,7 +688,7 @@ std::string templatename; if (dir.empty ()) templatename = octave::sys::env::get_temp_directory (); - else if (! file_stat (dir, false).is_dir ()) + else if (! octave::sys::file_stat (dir, false).is_dir ()) templatename = octave::sys::env::get_temp_directory (); else templatename = dir;