#NEWLINE# @ flow . StateHandler ( ) #NEWLINE# def Start( self ) : #NEWLINE# #INDENT# 'Issue the find request.' #NEWLINE# super ( FileFinder , self ) . Start ( ) #NEWLINE# if ( not self . args . paths ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . state . Register ( 'files_found' , 0 ) #NEWLINE# self . state . Register ( 'sorted_conditions' , sorted ( self . args . conditions , key = self . _ConditionWeight ) ) #NEWLINE# self . state . file_size = self . args . file_size #NEWLINE# if ( self . args . pathtype in ( rdf_paths . PathSpec . PathType . MEMORY , rdf_paths . PathSpec . PathType . REGISTRY ) ) : #NEWLINE# #INDENT# self . args . no_file_type_check = True #NEWLINE# #UNINDENT# if ( self . args . pathtype == rdf_paths . PathSpec . PathType . MEMORY ) : #NEWLINE# #INDENT# for path in self . args . paths : #NEWLINE# #INDENT# pathspec = rdf_paths . PathSpec ( path = utils . SmartUnicode ( path ) , pathtype = rdf_paths . PathSpec . PathType . MEMORY ) #NEWLINE# aff4path = aff4 . AFF4Object . VFSGRRClient . PathspecToURN ( pathspec , self . client_id ) #NEWLINE# stat_entry = rdf_client . StatEntry ( aff4path = aff4path , pathspec = pathspec ) #NEWLINE# self . ApplyCondition ( FileFinderResult ( stat_entry = stat_entry ) , condition_index = 0 ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# self . GlobForPaths ( self . args . paths , pathtype = self . args . pathtype , no_file_type_check = self . args . no_file_type_check )