comparison src/file-io.cc @ 6838:5e3350bdd91d

[project @ 2007-08-28 02:59:58 by jwe]
author jwe
date Tue, 28 Aug 2007 02:59:59 +0000
parents cfb849d6f314
children aee959a21c4b
comparison
equal deleted inserted replaced
6837:7eefeed173ea 6838:5e3350bdd91d
392 392
393 if (! error_state) 393 if (! error_state)
394 { 394 {
395 std::string fname = file_ops::tilde_expand (name); 395 std::string fname = file_ops::tilde_expand (name);
396 396
397 if (! (md & std::ios::out || octave_env::absolute_pathname (fname))) 397 if (! (md & std::ios::out
398 || octave_env::absolute_pathname (fname)
399 || octave_env::rooted_relative_pathname (fname)))
398 { 400 {
399 file_stat fs (fname); 401 file_stat fs (fname);
400 402
401 if (! fs.exists ()) 403 if (! fs.exists ())
402 { 404 {