Class DirectoryCopier
Copies all content of directory into another one
Inheritance
object
DirectoryCopier
Namespace: BuildSystem.Utils.DirectoryHelper
Assembly: BuildSystem.Utils.dll
Syntax
public static class DirectoryCopier : Object
Methods
CopyContent(string, string)
Copies all content of directory into another one
Declaration
public static void CopyContent(string sourceDirectory, string targetDirectory)
Parameters
Type | Name | Description |
---|---|---|
string | sourceDirectory | |
string | targetDirectory |
CopyFolder(string, string)
Copy folder with its content into target directory
Declaration
public static void CopyFolder(string sourceDirectory, string targetDirectory)
Parameters
Type | Name | Description |
---|---|---|
string | sourceDirectory | |
string | targetDirectory |
CopyFolderOrContent(string, string, ILogger?)
Copy folder and its content into target directory. If folder with same name already exists in target directory, will only copy content of source folder into it
Declaration
public static void CopyFolderOrContent(string sourceDirectory, string targetDirectory, ILogger? logger = null)
Parameters
Type | Name | Description |
---|---|---|
string | sourceDirectory | |
string | targetDirectory | |
ILogger | logger |