def copyFile(srcFile, destFile):
 try:
  shutil.copyfile(srcFile, destFile)
  shutil.copymode(srcFile, destFile)
 except OSError as e:
  raise

def copyFile ( srcFile , destFile ) : try : shutil . copyfile ( srcFile , destFile ) shutil . copymode ( srcFile , destFile ) except OSError as e : raise
copy a file from source to destination .