#NEWLINE# def ListFiles( self ) : #NEWLINE# #INDENT# 'List all the files in the directory.' #NEWLINE# if self . IsDirectory ( ) : #NEWLINE# #INDENT# dir_fd = self . fd . as_directory ( ) #NEWLINE# for f in dir_fd : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# name = f . info . name . name #NEWLINE# if ( ( name in [ '.' , '..' ] ) or ( name in self . BLACKLIST_FILES ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# ( yield self . MakeStatResponse ( f , tsk_attribute = None , append_name = f ) ) #NEWLINE# for attribute in f : #NEWLINE# #INDENT# if ( attribute . info . type in [ pytsk3 . TSK_FS_ATTR_TYPE_NTFS_DATA , pytsk3 . TSK_FS_ATTR_TYPE_DEFAULT ] ) : #NEWLINE# #INDENT# if attribute . info . name : #NEWLINE# #INDENT# ( yield self . MakeStatResponse ( f , append_name = name , tsk_attribute = attribute ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# except AttributeError : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# raise IOError ( ( '%s is not a directory' % self . pathspec . CollapsePath ( ) ) )