ServerNotificationsMoveToAsync Method (String) |
IT Hit User File System
Moves the file or folder placeholder in the user file system.
This method succeeds only if source is loaded in to user file system and target parent folder exists and is not offline.
Namespace:
ITHit.FileSystem.Mac
Assembly:
ITHit.FileSystem.Mac (in ITHit.FileSystem.Mac.dll) Version: 1.0.8837.18647
Syntax public Task<OperationResult> MoveToAsync(
string userFileSystemNewPath
)
Public Function MoveToAsync (
userFileSystemNewPath As String
) As Task(Of OperationResult)
public:
virtual Task<OperationResult^>^ MoveToAsync(
String^ userFileSystemNewPath
) sealed
abstract MoveToAsync :
userFileSystemNewPath : string -> Task<OperationResult>
override MoveToAsync :
userFileSystemNewPath : string -> Task<OperationResult>
Parameters
- userFileSystemNewPath
- Type: SystemString
New path in the user file system.
Return Value
Type:
TaskOperationResultOperation result, indicating if the operation was successfull and how many items was affected. If operation failed contains a reason for the failure.
Implements
IServerNotificationsMoveToAsync(String)Remarks
This method can move items that are modified in user file system (not In-Sync).
This method moves the item only if the source item exists in the user file system and the target item parent folder exists and is not offline.
If the source item does not exists in the user file system (not synched because of on-demand population), this method returns NotFound.
In this case, you must create a new item by calling CreateAsync(IFileSystemItemMetadata) method at the new location.
If the target parent folder does not exists or is offline, this method does not move the item and returns TargetNotFound.
In this case, if the source item exists, you must delete the source item by calling DeleteAsync method.
See Also