Click or drag to resize

DirectoryMove Method

Moves the specified directory and contents to the destination location.

Namespace: Crestron.SimplSharp.CrestronIO
Assembly: SimplSharpHelperInterface (in SimplSharpHelperInterface.dll) Version: 2.21.121
Syntax
C#
public static void Move(
	string sourceDirName,
	string destDirName
)

Parameters

sourceDirName  String
Source directory to move.
destDirName  String
Destination to move the source folder to.
Exceptions
ExceptionCondition
InvalidDirectoryLocationExceptionOne of the specified directories is invalid.
DirectoryNotFoundExceptionA Specified directory does not exist.
FileNotFoundExceptionA specified directory does not exist.
PathTooLongExceptionThe specified path is longer than 248 characters.
IOExceptionFile System error.
UnauthorizedAccessExceptionHigher Permissions needed.
ArgumentExceptionSpecified path contains invalid characters.
ArgumentNullExceptionSpecified path is null.

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also