MoveDirectory
Moves a directory. By default will throw an error if the directory already exists.
Task version: 1.1.0
Required Frends version: 5.5+
Required .NET version: 6.0
Compatible Agents: Crossplatform
Task Parameters
SourceDirectory : String
Source Directory path.
Default: "c:\temp"
Example: C:\Temp
TargetDirectory : String
Target Directory path.
Default: "c:\temp"
Example: C:\Temp
IfTargetDirectoryExists : DirectoryExistsAction
What to do if target directory already exists.
* Throw - Throw an error (the default)
* Rename - Create a new directory with a name that appends a number to the end, e.g. "directory(2)"
* Overwrite - Overwrite the target directory, by removing it first before moving the source directory
Possible values:
Throw: Throw an errorOverwrite: Overwrite the target directory.Rename: Rename the transferred directory by appending a number to the end.
Default: -
Example: Throw
UseGivenUserCredentialsForRemoteConnections : Boolean
If set, allows you to give the user credentials to use to create directories on remote hosts.
If not set, the agent service user credentials will be used.
Note: For creating directories on the local machine, the agent service user credentials will always be used, even if this option is set.
Default: -
Example: true
UserName : String
This needs to be of format domain\username
Default: "domain\username"
Example: Domain\Username
🗝Password : String
Password of user
Default: -
Example: Password123
Task Result
SourcePath : String
Source path of directory
Example: C:/User/SourceDirectory
TargetPath : String
Target path of directory
Example: C:/User/TargetDirectory
Task Changelog
Changelog for Task Frends.Files.MoveDirectory.
[1.1.0] - 2025-03-19
Changed
Update packages: Newtonsoft.Json 12.0.1 -> 13.0.3 System.ComponentModel.Annotations 4.7.0 -> 5.0.0 System.Runtime.Caching 7.0.0 -> 9.0.3 coverlet.collector 3.1.0 -> 6.0.4 Microsoft.NET.Test.Sdk 16.7.0 -> 17.13.0 MSTest.TestAdapter 2.1.2 -> 3.8.3 MSTest.TestFramework 2.1.2 -> 3.8.3 nunit 3.12.0 -> 4.3.2 NUnit3TestAdapter 3.17.0 -> 5.0.0 RichardSzalay.MockHttp 6.0.0 -> 7.0.0 xunit.extensibility.core 2.4.2 -> 2.9.3
[1.0.0] - 2023-08-17
Added
Initial implementation of Frends.Files.MoveDirectory.
Last updated
Was this helpful?

