[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mkdir and nested folders.
From: |
Carnë Draug |
Subject: |
Re: mkdir and nested folders. |
Date: |
Tue, 18 Dec 2012 10:23:43 +0000 |
On 18 December 2012 06:47, Laurent Hoeltgen <address@hidden> wrote:
> Hi.
>
> The following works in Matlab R2012a on Xubunu 12.04:
>
> mkdir('foo/bar/baz')
>
> when the folders foo and bar don't exist. They are simply created then, too.
> However on octave (3.6.2) it doesn't. Status is 0.
Yes. See https://savannah.gnu.org/bugs/?func=detailitem&item_id=30650
> Is there any way to get the same behaviour in octave as in matlab?
On comment #11 of that bug report there's an ugly hack for it. It
basically shadows core mkdir with a recursive call to core mkdir.
Carnë