#NEWLINE# def FileEntryExistsByPathSpec( self , path_spec ) : #NEWLINE# #INDENT# 'Determines if a file entry for a path specification exists.\n\n    Args:\n      path_spec: a path specification (instance of PathSpec).\n\n    Returns:\n      Boolean indicating if the file entry exists.\n    ' #NEWLINE# ( tsk_vs_part , _ ) = tsk_partition . GetTSKVsPartByPathSpec ( self . _tsk_volume , location ) #NEWLINE# if ( tsk_vs_part is None ) : #NEWLINE# #INDENT# location = getattr ( path_spec , 'location' , None ) #NEWLINE# return ( ( location is not None ) and ( location == self . LOCATION_ROOT ) ) #NEWLINE# #UNINDENT# return True