reference:plugins:vfs_plugins:vfs_setfiletime

VFS_SetFileTime(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     LPTSTR:lpszPath,
     LPFILETIME:lpCreateTime,
     LPFILETIME:lpAccessTime,
     LPFILETIME:lpWriteTime
)
→ 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 set the timestamps of.

lpCreateTime

[in] A pointer to the FILETIME representing the new creation time, or NULL.

lpAccessTime

[in] A pointer to the FILETIME representing the new last access time, or NULL.

lpWriteTime

[in] A pointer to the FILETIME representing the new last modification time, or NULL.

Return value

If the timestamp was set successfully you should return TRUE. If the file does not exist or another error occurs you should set an appropriate error code and return FALSE.

Description

The VFS_SetFileTime function is called to change one or more timestamps for a file in your plugin's namespace.

Not all of the three filetimes are necessarily provided in each call to this function - you must check that they are non-NULL before attempting to access them. Directory Opus generally does not call this function to change the last access time of a file. Last modification time is the most common timestamp changed, followed by creation time. If you only support one type of time stamp you should treat that as last modification time and ignore any other timestamps provided.