[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #62365] history fails to create nested directo
From: |
Markus Mützel |
Subject: |
[Octave-bug-tracker] [bug #62365] history fails to create nested directory on write attempt |
Date: |
Wed, 27 Apr 2022 14:16:09 -0400 (EDT) |
Follow-up Comment #15, bug #62365 (project octave):
Fwiw, the lines where `mkdir` is called:
https://hg.savannah.gnu.org/hgweb/octave/file/ba701853b1bf/liboctave/util/cmd-hist.cc#l373
// Try to create the folder if it does not exist
std::string hist_dir = sys::file_ops::dirname (f);
if (! hist_dir.empty ())
{
sys::file_stat fs (hist_dir);
if (! fs.is_dir () && (sys::mkdir (hist_dir, 0777) < 0))
(*current_liboctave_error_handler)
("%s: Could not create directory \"%s\" for history",
"gnu_history::do_write", hist_dir.c_str ());
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62365>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), (continued)
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Jim Maloney, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Jim Maloney, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Jim Maloney, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Jim Maloney, 2022/04/27
- [Octave-bug-tracker] [bug #62365] up arrow no longer shows previous command (Mac, CLI), Torsten Lilge, 2022/04/27
- [Octave-bug-tracker] [bug #62365] history fails to create nested directory on write attempt, Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] history fails to create nested directory on write attempt, Markus Mützel, 2022/04/27
- [Octave-bug-tracker] [bug #62365] history fails to create nested directory on write attempt,
Markus Mützel <=