nodes: 0, module; 1, function_definition; 2, function_name:finish_directory_parse; 3, parameters; 4, comment:# type: () -> None; 5, block; 6, identifier:self; 7, expression_statement; 8, if_statement; 9, if_statement; 10, string; 11, not_operator; 12, block; 13, comparison_operator:self.icb_tag.file_type != 4; 14, block; 15, string_content:A method to finish up the parsing of this UDF File Entry directory.
          In particular, this method checks to see if it is in sorted order for
          future use.
  
          Parameters:
           None.
          Returns:
           Nothing.; 16, attribute; 17, raise_statement; 18, attribute; 19, integer:4; 20, raise_statement; 21, identifier:self; 22, identifier:_initialized; 23, call; 24, attribute; 25, identifier:file_type; 26, call; 27, attribute; 28, argument_list; 29, identifier:self; 30, identifier:icb_tag; 31, attribute; 32, argument_list; 33, identifier:pycdlibexception; 34, identifier:PyCdlibInternalError; 35, string; 36, identifier:pycdlibexception; 37, identifier:PyCdlibInternalError; 38, string; 39, string_content:UDF File Entry not initialized; 40, string_content:Can only finish_directory for a directory
code: def finish_directory_parse(self):
          # type: () -> None
          '''
          A method to finish up the parsing of this UDF File Entry directory.
          In particular, this method checks to see if it is in sorted order for
          future use.
  
          Parameters:
           None.
          Returns:
           Nothing.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('UDF File Entry not initialized')
  
          if self.icb_tag.file_type != 4:
              raise pycdlibexception.PyCdlibInternalError('Can only finish_directory for a directory')