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: Sat, 15 Oct 2022 11:48:07 -0400 (EDT)

Update of bug #62365 (project octave):

                  Status:               Confirmed => Patch Submitted        
                 Release:                   7.1.0 => dev                    

    _______________________________________________________

Follow-up Comment #16:

The attached patch adds a new function that creates a directory making sure
that all parent directories are also created.
I chose the name `recursive_mkdir` because we already have `recursive_rmdir`
for a similar purpose. But the function doesn't actually call itself
recursively.
The patch also uses that new function when creating the directory for the
history file. That will hopefully fix the issue that users (especially on Mac
platforms) are seeing when multiple levels of the directory for the history
file don't exist.

Are there testers on macOS that could try this patch?

Also moving to "dev" because it might be too risky to change this for the
final release of Octave 7, and a work-around exists.

(file #53861)

    _______________________________________________________

Additional Item Attachment:

File name: bug62984-mkdir-recursive.patch Size:3 KB
   
<https://file.savannah.gnu.org/file/bug62984-mkdir-recursive.patch?file_id=53861>



    _______________________________________________________

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]