stdin,stdout,stderr = client.exec_command('ls DIR')if stdout.readline() != '': print("exist")else: print("not exist")