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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #61166] mkdir(parent, dirname) fails if parent


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #61166] mkdir(parent, dirname) fails if parent does not exist
Date: Wed, 15 Sep 2021 13:35:46 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0

Update of bug #61166 (project octave):

              Item Group:    Matlab Compatibility => Incorrect Result       

    _______________________________________________________

Follow-up Comment #2:

Changing the item group to incorrect result.  Octave's own documentation says


Create a directory named DIRNAME in the directory PARENT, creating any
intermediate directories if necessary.


so I guess that could be interpreted as saying that any  missing parts of
"fullfile (parent, dirname)" should be created.

It seems a bit weird to accept a single parent directory name.  Why not just
require


mkdir foo/bar/...


Or, why just one parent?  Why not


mkdir foo bar baz ...


Anyway, what about the attached patch?  It could also probably use a few tests
for missing directories, parent names with "~", etc., especially since this
function may eventually be replaced with code from gnulib?  So maybe those
tests should go in the test directory instead of in mkdir.m so they aren't
accidentally lost in the future if mkdir.m is removed.

(file #51923)
    _______________________________________________________

Additional Item Attachment:

File name: mkdir-diffs.txt                Size:0 KB
    <https://file.savannah.gnu.org/file/mkdir-diffs.txt?file_id=51923>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?61166>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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