octave-bug-tracker
[Top][All Lists]
Advanced

[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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]