Class DirectoryExtensions
Inheritance
System.Object
DirectoryExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Snowflake.Filesystem
Assembly: Snowflake.Framework.dll
Syntax
public static class DirectoryExtensions
Methods
CopyFromDirectory(IIndelibleDirectory, IIndelibleDirectory)
Copies all the files and directories from the source directory recursively into this directory.
Declaration
public static IAsyncEnumerable<IFile> CopyFromDirectory(this IIndelibleDirectory this, IIndelibleDirectory source)
Parameters
Type | Name | Description |
---|---|---|
IIndelible |
this | The destination directory. |
IIndelible |
source | The source directory. |
Returns
Type | Description |
---|---|
System. |
An enumerable of copied files. |
CopyFromDirectory(IIndelibleDirectory, IIndelibleDirectory, Boolean)
Copies all the files and directories from the source directory recursively into this directory.
Declaration
public static IAsyncEnumerable<IFile> CopyFromDirectory(this IIndelibleDirectory this, IIndelibleDirectory source, bool overwrite)
Parameters
Type | Name | Description |
---|---|---|
IIndelible |
this | The destination directory. |
IIndelible |
source | The source directory. |
System. |
overwrite | Whether or not to overwrite existing files. |
Returns
Type | Description |
---|---|
System. |
An enumerable of copied files. |