def moveFile_createLink(self, srcFile, dstFile): try: print srcFile + "....." + dstFile if ( not os.path.islink(srcFile) ) and (os.path.isfile(srcFile)): NGS_Util.moveFile(srcFile,dstFile) os.symlink(dstFile,srcFile) else: if ( not os.path.exists(srcFile) ) and ( os.path.exists(dstFile)): os.symlink(dstFile,srcFile) except Exception: print traceback.print_exc()