help-octave
[Top][All Lists]
Advanced

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

Re: mkdir and nested folders.


From: Laurent Hoeltgen
Subject: Re: mkdir and nested folders.
Date: Wed, 19 Dec 2012 07:47:09 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

On 18/12/12 08:28, Andreas Weber wrote:
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

Hi,

for the time being, I think I can live with

system("mkdir -p foo/bar/baz"),

Thanks for the help.

Regards,
Laurent


reply via email to

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