reference:plugins:vfs_plugins:vfs_setfileattr

VFS_SetFileAttr(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     DWORD:dwAttr,
     BOOL:fForDelete
)
→ BOOL

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

lpszPath

[in] A null-terminated string containing the full pathname of the file to retrieve attributes for.

dwAttr

[in] Specifies the new attributes for the file.

fForDelete

[in] Set to TRUE if this is being called to unprotect a file for a delete operation

Return value

If the attributes were successfully changed you should return TRUE. If the file does not exist or another error occurs you should return FALSE.

Description

The VFS_SetFileAttr function is called to set the attributes of a file or folder in your plugin's namespace.

The attribute flags are the same as those in the Windows API. See the documentation for the Windows SetFileAttributes function for a list of flags. You only need to support those flags that make sense in the context of your plugin.