On Fri, Oct 1, 2010 at 7:02 PM, logical american <[email protected]> wrote: > >> What arguments are you passing to mkdir()? Do all elements of the >> path leading up to the new directory name exist? The following >> program works for me. >> >> >> #include<sys/stat.h> >> #include<sys/types.h> >> >> main() >> { >> mkdir("/tmp/foo bar-baz", 0777); >> } >> > Galen: > > Try to make a directory with two depths, mkdir("/tmp/deeper/foo bar-baz > bam", 0777); and see if that fails. I have been playing around with the > directory depth and my program fails with two slash characters in the path. > > Randall
http://linux.die.net/man/3/mkdir mkdir() only takes two parameters and I'm not sure how it handles spaces in the parameter #1. _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
