Otter SDK Reference
Version:

SetLastWriteTime(IFileOperationsExecuter agent, string path, System.DateTime lastModified) Method

Writes the specified metadata to the file or directory.

Syntax

public static void SetLastWriteTime(IFileOperationsExecuter agent, string path, System.DateTime lastModified)

Parameters

agent
Type: IFileOperationsExecuter

The agent.

path
Type: string

Full path of the file or directory.

lastModified
Type: System.DateTime

Timestamp (UTC) to write.