|
From: | Andreas Weber |
Subject: | Re: mkdir and nested folders. |
Date: | Tue, 18 Dec 2012 08:28:53 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10 |
On 18.12.2012 07:47, Laurent Hoeltgen wrote:
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.
Hi Laurent,I think this is related to http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00034.html octave uses gnulib::mkdir. There is also a gnulib::mkdir-p but as you see in the link above this made some problems compiling with MinGW.
You can do 'system("mkdir -p foo/bar/baz")' but this isn't platform independent.Is there any way to get the same behaviour in octave as in matlab?
Regards, Andy
[Prev in Thread] | Current Thread | [Next in Thread] |