Home  >  Q&A  >  body text

我想用python从gitlab上拉取文件,但是一直报"Permission denied"?

天蓬老师天蓬老师2765 days ago310

reply all(2)I'll reply

  • 黄舟

    黄舟2017-04-18 10:00:46

    Try adding the current path
    repo_path = './Cocoa Touch Class.xctemplate'

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-18 10:00:46

    The "Permission denied" error here is because there is no permission to create the local directory '/Cocoa Touch Class.xctemplate'

    '/Cocoa Touch Class.xctemplate' is an absolute path, and the first '/' represents the system root directory

    Your user should not have permission to create the 'Cocoa Touch Class.xctemplate' directory in the system root directory

    Just change the repo_path variable below to a directory with permissions, for example:

    repo_path = 'Cocoa Touch Class.xctemplate'

    reply
    0
  • Cancelreply