code: def get_data_length(self):
          # type: () -> int
          '''
          A method to get the length of the data that this Directory Record
          points to.
  
          Parameters:
           None.
          Returns:
           The length of the data that this Directory Record points to.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
          if self.inode is not None:
              return self.inode.get_data_length()
          return self.data_lengtf get_data_length(self):
          # type: () -> int
          '''
          A method to get the length of the data that this Directory Record
          points to.
  
          Parameters:
           None.
          Returns:
           The length of the data that this Directory Record points to.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Directory Record not yet initialized')
          if self.inode is not None:
              return self.inode.get_data_length()
          return self.data_length
docs: A method to get the length of the data that this Directory Record
          points to.
  
          Parameters:
           None.
          Returns:
           The length of the data that this Directory Record points to.