我有以下函数从 Subversion 存储库中获取文件:
def getFileSVN(remoteFile, localFile):
remoteFile = SVN_URL + '/' + remoteFile
command = '{0} export {1} {2}'.format(SVN, remoteFile, localFile)
ret = subprocess.call(command.split())
if ret == 0:
return True
else:
return False
该函数通过以下方式调用:
ret = getFileSVN(branches/branch/somefile, /tmp/tmpdir/somefile)
但它总是失败:
svn: Can't open '/tmp/tmpdir/tempfile.tmp': No such file or directory
我找不到我的错误在哪里。