FRENDS Tasks to preform various operations on file system directories.
You can install the task via FRENDS UI Task view or you can find the nuget package from the following nuget feed
https://www.myget.org/F/frends/api/v2
Clone a copy of the repo
git clone https://github.com/FrendsPlatform/Frends.Directory.git
Restore dependencies
nuget restore frends.directory
Rebuild the project
Run Tests with nunit3. Tests can be found under
Frends.Directory.Tests\bin\Release\Frends.Directory.Tests.dll
Create a nuget package
nuget pack nuspec/Frends.Directory.nuspec
When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.
- Fork the repo on GitHub
- Clone the project to your own machine
- Commit changes to your own branch
- Push your work back up to your fork
- Submit a Pull request so that we can review your changes
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
Creates all directories and sub-directories in the specified path unless they already exist. If the target directory already exists the task will return a successful response with the path to the target directory.
Property | Type | Description | Example |
---|---|---|---|
Directory | string | Full path for the directory that is to be created | c:\temp\ c:/temp/foo |
Property | Type | Description | Example |
---|---|---|---|
UseGivenUserCredentialsForRemoteConnections | bool | If set, allows you to give the user credentials to use to delete directories on remote hosts. If not set, the agent service user credentials will be used. Note: For deleting directories on the local machine, the agent service user credentials will always be used, even if this option is set. | |
UserName | string | Needs to be of format domain\username | example\Admin |
Password | string |
object
Property | Type | Description |
---|---|---|
Path | string | Full path for the created directory |
Moves a folder and all of its content to a new path. Parent folder for target directory needs to exist or the task will throw an exception.
Property | Type | Description | Example |
---|---|---|---|
SourceDirectory | string | Path to directory to be moved | c:\temp\foo\ |
TargetDirectory | string | Path to the new place for the directory | c:\temp\bar\ |
Property | Type | Description | Example |
---|---|---|---|
IfTargetDirectoryExists | Enum{Throw, Rename, Overwrite} | What to do if target directory already exists. Rename will create a new directory with a name that appends a number to the end, e.g. directory(2) |
|
UseGivenUserCredentialsForRemoteConnections | bool | If set, allows you to give the user credentials to use to move directories on remote hosts. If not set, the agent service user credentials will be used. Note: For deleting directories on the local machine, the agent service user credentials will always be used, even if this option is set. | |
UserName | string | Needs to be of format domain\username | example\Admin |
Password | string |
object
Property | Type | Description |
---|---|---|
SourceDirectory | string | Full path for the source directory |
TargetDirectory | string | Full path for the target directory |
Deletes a directory. This task will by default throw if the directory is not empty. If the directory is not found, an empty result is returned.
Property | Type | Description | Example |
---|---|---|---|
Directory | string | Full path for the directory that is to be dleted | c:\temp\ c:/temp/foo |
Property | Type | Description | Example |
---|---|---|---|
DeleteRecursively | bool | Delete all files and sub-directories in the directory | |
UseGivenUserCredentialsForRemoteConnections | bool | If set, allows you to give the user credentials to use to delete directories on remote hosts. If not set, the agent service user credentials will be used. Note: For deleting directories on the local machine, the agent service user credentials will always be used, even if this option is set. | |
UserName | string | Needs to be of format domain\username | example\Admin |
Password | string |
object
Property | Type | Description |
---|---|---|
Path | string | Full path for the deleted directory |
DirectoryNotFound | bool | If set, the directory to delete was not found. Then the Path property will also be empty |
This project is licensed under the MIT License - see the LICENSE file for details