def __init__(
      self, resolver_context, file_system, path_spec, is_root=False,
      is_virtual=False):
    """Initializes the file entry object.

    Args:
      resolver_context (Context): resolver context.
      file_system (FileSystem): file system.
      path_spec (PathSpec): path specification.
      is_root (Optional[bool]): True if the file entry is the root file entry
          of the corresponding file system.
      is_virtual (Optional[bool]): True if the file entry is a virtual file

    Raises:
      BackEndError: when the BDE volume is missing.
    """
    bde_volume = file_system.GetBDEVolume()
    if bde_volume is None:
      raise errors.BackEndError('Missing BDE volume.')

    super(BDEFileEntry, self).__init__(
        resolver_context, file_system, path_spec, is_root=is_root,
        is_virtual=is_virtual)
    self._bde_volume = bde_volume
    self.entry_type = definitions.FILE_ENTRY_TYPE_FILE
def __init__ ( self , resolver_context , file_system , path_spec , is_root = False , is_virtual = False ) : bde_volume = file_system . GetBDEVolume ( ) if bde_volume is None : raise errors . BackEndError ( 'Missing BDE volume.' ) super ( BDEFileEntry , self ) . __init__ ( resolver_context , file_system , path_spec , is_root = is_root , is_virtual = is_virtual ) self . _bde_volume = bde_volume self . entry_type = definitions . FILE_ENTRY_TYPE_FILE
Initializes the file entry object.

    Args:
      resolver_context (Context): resolver context.
      file_system (FileSystem): file system.
      path_spec (PathSpec): path specification.
      is_root (Optional[bool]): True if the file entry is the root file entry
          of the corresponding file system.
      is_virtual (Optional[bool]): True if the file entry is a virtual file

    Raises:
      BackEndError: when the BDE volume is missing.