Sidebar

Using Directory Opus
Configuration
Programming
Reference Section
reference:plugins:vfs_plugins:exported_functions_reference:vfs_extractfiles

VFS_ExtractFiles(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPVFSEXTRACTFILESDATA:lpExtractData
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

lpExtractData

[in] Address of a VFSEXTRACTFILESDATA structure

Return value

If the extraction was successful you should return TRUE, otherwise you should set an appropriate error code and return FALSE.

Description

The VFS_ExtractFiles function is called to extract files from your plugin's namespace to a local disk file.

The lpszDestPath field of the VFSEXTRACTFILESDATA structure contains the destination path for the extracted files. The lpszFiles is a double null-terminated list of strings, each one specifying a file to extract from your plugin's namespace.

If you do not provide this function then Opus will simulate it with a combination of VFS_CreateFile / VFS_ReadFile / VFS_CloseFile - so unless you are able to extract files more efficiently than this you may feel free to not implement it.