Luna::VFS::DriverDesc::on_open_dir

R< Ref< IFileIterator > >(* on_open_dir) (void *driver_data, void *mount_data, const Path &path)

Called when VFS::open_dir is called on one directory that belongs to devices of this driver.

Parameters

  • in driver_data

    The user-provided driver data.

  • in mount_data

    The mount data returned by on_mount for the device.

  • in path

    The path of the directory to open.

Return value

Returns one file iterator used to enumerate files in the opened directory.