help-octave
[Top][All Lists]
Advanced

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

Re: recursive mkdir("DIR","s") / mylib_mkdir("DIR","s")


From: John W. Eaton
Subject: Re: recursive mkdir("DIR","s") / mylib_mkdir("DIR","s")
Date: Sat, 23 Feb 2008 13:18:29 -0500

On 23-Feb-2008, Sepp Käsbauer wrote:

| Am Samstag, 23. Februar 2008 schrieb Stefan Pofahl:
| > Hello,
| Hello,
| 
| >
| > I need a recursive mkdir. At the moment mkdir,
| > only supports to create bottom-level directories,
| > if the directory above allready exists, that is
| > sometimes boring.
| > Has someone coded a while structure for recursive
| > building a new bottom-level directory inclusive of all
| > the necessary directories above?
| 
| you want to try something like:
|   
|    system("mkdir -p a/b/c/d")
| 
| it executes mkdir from within a shell with -p like parent

That's not portable.

I would consider a patch that modified Octave's mkdir function to
examine it's argument and create parent directories as needed.

jwe



reply via email to

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