Recursive mkdir() system call on Unix
问题 After reading the mkdir(2) man page for the Unix system call with that name, it appears that the call doesn't create intermediate directories in a path, only the last directory in the path. Is there any way (or other function) to create all the directories in the path without resorting to manually parsing my directory string and individually creating each directory ? 回答1: There is not a system call to do it for you, unfortunately. I'm guessing that's because there isn't a way to have really