def moveAndSymlinkFile(srcFile, destFile):
 try:
  moveFile(srcFile, destFile)
  symlink(destFile, srcFile)
 except Exception as error:
  logger.log(u'Failed to create symlink of {0} at {1}. Error: {2}. Copying instead'.format(srcFile, destFile, error), logger.WARNING)
  copyFile(srcFile, destFile)

def moveAndSymlinkFile ( srcFile , destFile ) : try : moveFile ( srcFile , destFile ) symlink ( destFile , srcFile ) except Exception as error : logger . log ( u'Failed to create symlink of {0} at {1}. Error: {2}. Copying instead' . format ( srcFile , destFile , error ) , logger . WARNING ) copyFile ( srcFile , destFile )
move a file from source to destination .