def hardlinkFile(srcFile, destFile):
 try:
  link(srcFile, destFile)
  fixSetGroupID(destFile)
 except Exception as e:
  sickrage.srCore.srLogger.warning((u'Failed to create hardlink of %s at %s. Error: %r. Copying instead' % (srcFile, destFile, e)))
  copyFile(srcFile, destFile)

def hardlinkFile ( srcFile , destFile ) : try : link ( srcFile , destFile ) fixSetGroupID ( destFile ) except Exception as e : sickrage . srCore . srLogger . warning ( ( u'Failed to create hardlink of %s at %s. Error: %r. Copying instead' % ( srcFile , destFile , e ) ) ) copyFile ( srcFile , destFile )
create a hard-link between source and destination .