Date: Tue, 1 Feb 2005 12:58:59 -0800 From: "Michael C. Shultz" <reso3w83@verizon.net> To: FreeBSD Questions <freebsd-questions@freebsd.org> Cc: Louis LeBlanc <FreeBSD@keyslapper.net> Subject: Re: library call for directory path creation? Message-ID: <200502011258.59704.reso3w83@verizon.net> In-Reply-To: <20050201193507.GD71726@keyslapper.net> References: <20050201193507.GD71726@keyslapper.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tuesday 01 February 2005 11:35 am, Louis LeBlanc wrote: > I know there might be a better place for this question, but here > goes. > > I'm working on a utility that has to, among many other things, create > directory paths, often with a series of parent directories that may > not already exist. Solaris has mkdirp(3GEN) in the libgen library, > but I can't find a library call that will do this in FreeBSD. Kind > of like `mkdir -p` would. > > I know it would be pretty trivial to roll my own, and if I can't find > it I will. I'm just curious if anyone knows of an *existing* library > call that would do this. > > TIA > Lou Assuming your working in C what is wrong with: char command[] = "mkdir -p /path/to/whatever"; system( command ); ?? -Mike
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502011258.59704.reso3w83>