Python和Mac OS X上的mkdir

时间:2018-04-10 16:04:20

标签: python macos python-2.7

Python2,Mac OS X 10.11 ......

我在github上发现了它。一切都很好,期待这个:

error = Popen("%s \"mkdir -p '%s'\"" % (PathZero, MyPath), shell=True, stdout=PIPE, stderr=PIPE).stderr.read()
    if error != '':
        send_msg("%sError creating path:\n\t%s" % (red_minus, error), False)
    else:
        send_msg("%sCreated path '%s'.\n" % (PathTwo, PathOne), False)

我总是得到:

  

创建路径时出错

     

/ bin / sh:/ Users / test / Downloads / File:Permission denied

我不需要" sudo"这个文件夹。我认为这个问题存在一些问题:Popen("%s \" mkdir -p'%s' \""

0 个答案:

没有答案