【发布时间】:2017-11-29 23:17:06
【问题描述】:
我正在使用以下脚本来创建一组文件夹。
import os
newFolders = ['large', 'list', 'of', 'folder', 'names']
setDirPath = os.getcwd()
for folder in newFolders:
os.makedirs(os.path.join(setDirPath,folder))
这很好用, 问:新创建的文件夹的属性是从哪里获取的?他们是否继承了他们所在文件夹的任何共享/安全/自定义设置?对 Python 非常陌生,希望为新项目创建 600 个客户端文件夹,并希望尽可能避免出现意外问题。 python
【问题讨论】:
标签: python python-3.x