~~Title: Capabilities Flags Reference~~ These flags are used in the //dwCapabilities// field of the **VFSPLUGININFO** structure, and as a return value for the [[.exported_functions_reference:vfs_getcapabilities|VFS_GetCapabilities]] function. |VFSCAPABILITY_MOVEBYRENAME|Indicates that your plugin is able to move files by renaming them. If this flag is specified and the user attempts to move a file from one folder to another, Opus will call your [[.exported_functions_reference:vfs_movefile|VFS_MoveFile]] function to perform the operation. If this flag is not specified, moving a file will involve creating a copy of it and then deleting the original.| |VFSCAPABILITY_COPYINDEFINITESIZES|Indicates that the file sizes reported by your plugin are not necessarily accurate. This is used when the user copies files from your plugin's namespace. If this flag is set Opus will ignore the stated size of a file and continue to read data until you return an end-of-file indicator. If this flag is not set Opus will only read the number of bytes you have reported for the size of the file.| |VFSCAPABILITY_CANRESUMECOPIES|Indicates that your plugin can resume interrupted file transfers (or file copy operations). If this flag is set and the user attempts to resume a file transfer either to or from your plugin's namespace, Opus will call your [[.exported_functions_reference:vfs_seekfile|VFS_SeekFile]] function to position the file pointer appropriately.| |VFSCAPABILITY_TRIGGERRESUME|Set this flag if you want your plugin to be the trigger for a resume of an interrupted copy. If you set this flag and the user attempts to copy a file to or from your namespace that already exists, Opus will give them the option of resuming the transfer. As an example of how this flag differs from VFSCAPABILITY_CANRESUMECOPIES, the internal FTP namespace in Opus sets both flags, whereas the standard file system namespace only sets VFSCAPABILITY_CANRESUMECOPIES. This means that a user copying an existing file between two file system folders will not be given the option of resuming, but a user copying from or to an FTP namespace will be asked if they wish to resume or not. The standard file system namespace supports resume but only the FTP namespace triggers the option.| |VFSCAPABILITY_POSTCOPYREREAD|If this flag is set Opus will automatically trigger a refresh of the destination Lister whenever files are copied to it or removed from it.| |VFSCAPABILITY_CASESENSITIVE|Set this flag if filenames in your namespace are case-sensitive.| |VFSCAPABILITY_RANDOMSEEK|Set this flag if you support random seeking within files. If you only support sequential seeking, or do not support seeking at all, do not set this flag. Opus does not generally use or require random seeking, but some viewer plugins may require the ability.| |VFSCAPABILITY_FILEDESCRIPTIONS|Set this flag if you want your plugin to be able to provide description strings for files in its namespace. Opus will call your [[.exported_functions_reference:vfs_getfiledescription|VFS_GetFileDescription]] function to retrieve descriptions for files (for example, if the user displays the Description field in a Lister). Note that the strings returned by this function are not (necessarily) user supplied comments - they can contain any information you desire. A separate function pair ([[.exported_functions_reference:vfs_getfilecomment|VFS_GetFileComment]] / [[.exported_functions_reference:vfs_setfilecomment|VFS_SetFileComment]]) is used to implement for user-editable comments.| |VFSCAPABILITY_ALLOWMUSICCOLUMNS|Set this flag if you want the music-related Lister information fields to be available in your plugin's namespace. Note that Opus does not call your plugin to provide this information - it uses its own routines to open files in your namespace and parse them for the needed information. You can use the [[.exported_functions_reference:vfs_getcustomcolumns|VFS_GetCustomColumns]] function to provide your own information columns for display in Listers.| |VFSCAPABILITY_ALLOWIMAGECOLUMNS|Similar to the VFSCAPABILITY_ALLOWMUSICCOLUMNS flag, this flag indicates that you want the image-related Lister information fields to be available in your plugin's namespace.| |VFSCAPABILITY_ALLOWEXTRADATECOLUMNS|This flag indicates that you want the last accessed and creation date fields to be available in your plugin's namespace. If this flag is not set the only date fields available will be for last modified date.| |VFSCAPABILITY_LETMEDOPARENTS|If this flag is set then Opus will call your [[.exported_functions_reference:vfs_getpathparentroot|VFS_GetPathParentRoot]] function whenever it needs to calculate the parent or root of a path in your plugin's namespace. If not specified, Opus will apply standard parsing rules to calculate the desired path.| |VFSCAPABILITY_COMBINEDPROPERTIES|Set this flag if your plugin is able to display a combined Properties sheet for multiple files. If this flag is set and the user requests the properties of multiple files at once in your plugin's namespace, Opus will call your [[.exported_functions_reference:vfs_properties|VFS_Properties]] function with a double-null terminated list of files to display properties for. If this flag is not set, Opus will call your [[.exported_functions_reference:vfs_properties|VFS_Properties]] function once for each selected file.| |VFSCAPABILITY_COMPARETIMENOSECONDS|Set this flag if your plugin does not report or preserve seconds in file times. If this flag is set Opus will discard or ignore the seconds of any file times it needs to compare with times provided by your plugin.| |VFSCAPABILITY_GETBATCHFILEINFO|Set this flag if your plugin is able to handle asynchronous requests for file information (which may involve opening and reading file data). If this flag is set, Opus will launch a background thread to read all required or desired file information for all files in the folder whenever a directory is read. If this flag is not set, Opus will only request file information when needed.| |VFSCAPABILITY_SLOW|Set this flag if your plugin represents a slow device or media. This flag is passed to viewer plugins as an indication that accesses to your plugin's namespace may take longer than expected. Additionally, Opus will not attempt to determine file type by reading the contents of the file on a slow device, and may also refrain from attempting to extract some file information in some cases.| |VFSCAPABILITY_MULTICREATEDIR|Set this flag if your plugin supports the creation of multiple directories simultaneously. If set, your [[.exported_functions_reference:vfs_createdirectory|VFS_CreateDirectory]] function should be able to handle a comma-separated list of folders to create.| |VFSCAPABILITY_ALLOWFILEHASH|Set this flag if you want your plugin to allow the hashing of files within its namespace. The actual hashing is performed by Directory Opus (currently using MD5 functions) - all that is required of your plugin if this flag is set is the ability to read sequentially from files within your namespace. If access to your files is particularly slow you may wish to disable the hash functionality.| |VFSCAPABILITY_READONLY|This flag should be set if your plugin is read-only - that is, if you do not support the creation of, writing to or deleting of files within your plugin's namespace. The example unrar plugin sets this flag as the required support library does not support the creation of rar archives.| |VFSCAPABILITY_CHECKAVAILONDIRCHANGE|If this flag is set Opus will call your [[.exported_functions_reference:vfs_propget|VFS_PropGet]] function to retrieve the VFSPROP_FUNCAVAILABILITY property and update the state of any toolbar buttons whenever a new folder is read within your plugin's namespace. This allows you to selectively enable or disable file functions on a per-folder basis and have the user interface reflect this automatically.|