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.
Is there any way to get the same behaviour in octave as in matlab?
You can do 'system("mkdir -p foo/bar/baz")' but this isn't platform
independent.
Regards, Andy
_______________________________________________
Help-octave mailing list
address@hidden
https://mailman.cae.wisc.edu/listinfo/help-octave