Click or drag to resize

IServerNotificationsUpdateAsync Method

IT Hit User File System
Updates a file or folder on this virtual drive. This method automatically hydrates and dehydrates files.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 7.1.23701.0
Syntax
Task<bool> UpdateAsync(
	IFileSystemItemMetadata itemInfo,
	bool autoHydration = true
)

Parameters

itemInfo
Type: ITHit.FileSystemIFileSystemItemMetadata
New file or folder info.
autoHydration (Optional)
Type: SystemBoolean
Automatically hydrates and dehydrates file.

Return Value

Type: TaskBoolean
True if the file was updated. False - otherwise, for example if the item does not exist in the user file system.
Remarks

Call this method from your remote storage monitor when a file or folder is updated in the remote storage.

This method failes if the file or folder in user file system is modified (not in-sync with the remote storage).

Because of the on-demand loading, the item may not exist in the user file system. In this case the item will not be updated and this method returns false.

See Also