def __MirrorPath(self, aLocalView, aDestinationPath, aFilePath):
assert(string.count(aFilePath, aLocalView) != -1)
myStartCommonSubpath = string.find(aFilePath, aLocalView)
myStartCommonSubpath += len(aLocalView)
myMirrorPath = aDestinationPath + aFilePath[myStartCommonSubpath:]
myMirrorPath = os.path.dirname(myMirrorPath)
myMirrorPath = os.path.normpath(myMirrorPath)
return myMirrorPath
评论列表
文章目录