import shutil
import urllib
def internal_downloadFile(self,sourceFile,dstFile):
dirPath = os.path.dirname(dstFile)
if not os.path.exists(dirPath):
os.makedirs(dirPath)
if sourceFile.startswith('//'):
shutil.copyfile(sourceFile, dstFile)
elif sourceFile.startswith('http'):
urllib.urlretrieve(sourceFile,dstFile)