code: def get_file_mode(self):
          # type: () -> int
          '''
          Get the POSIX file mode bits for this Rock Ridge entry.
  
          Parameters:
           None.
          Returns:
           The POSIX file mode bits for this Rock Ridge entry.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Rock Ridge extension not yet initialized')
  
          if self.dr_entries.px_record is None:
              if self.ce_entries.px_record is None:
                  raise pycdlibexception.PyCdlibInvalidInput('No Rock Ridge file mode')
              return self.ce_entries.px_record.posix_file_mode
  
          return self.dr_entries.px_record.posix_file_modf get_file_mode(self):
          # type: () -> int
          '''
          Get the POSIX file mode bits for this Rock Ridge entry.
  
          Parameters:
           None.
          Returns:
           The POSIX file mode bits for this Rock Ridge entry.
          '''
          if not self._initialized:
              raise pycdlibexception.PyCdlibInternalError('Rock Ridge extension not yet initialized')
  
          if self.dr_entries.px_record is None:
              if self.ce_entries.px_record is None:
                  raise pycdlibexception.PyCdlibInvalidInput('No Rock Ridge file mode')
              return self.ce_entries.px_record.posix_file_mode
  
          return self.dr_entries.px_record.posix_file_mode
docs: Get the POSIX file mode bits for this Rock Ridge entry.
  
          Parameters:
           None.
          Returns:
           The POSIX file mode bits for this Rock Ridge entry.