While recently working on a project, I needed to create a series of subdirectories from a user supplied string. These could be two, three, four or more deep.
在最近的一个项目中,我需要从一个用户提供的子目录中创建一系列子目录。可以是两层、三层、四层或更深的目录。
来源: http://www.codeguru.com/files/WriteDir.shtml