#NEWLINE# def _get_stat( self ) : #NEWLINE# #INDENT# rv = self . _stat #NEWLINE# if ( rv is not None ) : #NEWLINE# #INDENT# return rv #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# st = os . stat ( self . filename ) #NEWLINE# mtime = int ( st . st_mtime ) #NEWLINE# if stat . S_ISDIR ( st . st_mode ) : #NEWLINE# #INDENT# size = len ( os . listdir ( self . filename ) ) #NEWLINE# is_dir = True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# size = int ( st . st_size ) #NEWLINE# is_dir = False #NEWLINE# #UNINDENT# rv = ( mtime , size , is_dir ) #NEWLINE# #UNINDENT# except OSError : #NEWLINE# #INDENT# rv = ( 0 , ( - 1 ) , False ) #NEWLINE# #UNINDENT# self . _stat = rv #NEWLINE# return rv