#NEWLINE# def exists( self , filename , use_sudo = True , **kw ) : #NEWLINE# #INDENT# '\n        Returns ``True`` when a file named ``filename`` exists on this hosts.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# self . _run_silent ( ( "test -f '%s' || test -d '%s'" % ( esc1 ( filename ) , esc1 ( filename ) ) ) , use_sudo = use_sudo , ** kw ) #NEWLINE# return True #NEWLINE# #UNINDENT# except ExecCommandFailed : #NEWLINE# #INDENT# return False