Create multi level sub folder structure in PHP

前端 未结 3 1032
攒了一身酷
攒了一身酷 2020-12-18 09:12

I\'m trying to create a folder structure which has multi level sub folders. For example, I want to create a folder structure like \'Fruits/Edible/Seedless\'. I tried it with

3条回答
  •  南笙
    南笙 (楼主)
    2020-12-18 10:05

    You can also use the Linux exec command in the following way to achieve this,

    
    

    -p won't throw any error if directory exists, otherwise it will create the directory along with the parent directories.

提交回复
热议问题