Click or drag to resize

IServerNotificationsMoveToAsync Method (String, IFileSystemItemMetadata)

IT Hit User File System
Moves the file or folder placeholder in the user file system. Automatically creates the target or deletes source depending on items existance.

Namespace:  ITHit.FileSystem
Assembly:  ITHit.FileSystem (in ITHit.FileSystem.dll) Version: 8.3.27213.0
Syntax
Task<OperationResult> MoveToAsync(
	string userFileSystemNewPath,
	IFileSystemItemMetadata metadata
)

Parameters

userFileSystemNewPath
Type: SystemString
New path in the user file system.
metadata
Type: ITHit.FileSystemIFileSystemItemMetadata
This data will be used in case the source does not exists.

Return Value

Type: TaskOperationResult
Operation result, indicating if the operation was successfull and how many items was affected. If operation failed contains a reason for the failure.
Remarks

Because of the on-demand population, the souce may not exists in user file system. In this case the metadata parameter will be used to create an item at the target location.

If target parent folder does not exists this method will delete the souce item.

See Also