src/SyncTool.FileSystem/main/Local/LocalItemCreator.cs
/// <summary>
/// Creates the specified file system tree in the specified location
/// </summary>
/// <param name="toCreate">The file system tree to create</param>
/// <param name="createIn">The path to create the tree in</param>
/// <returns></returns>
Creates the specified file system tree in the specified location
Creates the specified file system tree in the specified location
public ILocalDirectory CreateDirectory(IDirectory toCreate, string createIn)
        {
            if (toCreate == null)
            {
                throw new ArgumentNullException(nameof(toCreate));
            }
            VisitDynamic(toCreate, createIn);
            return new LocalDirectory(null, Path.Combine(createIn, toCreate.Name));
        }
public ILocalDirectory CreateDirectory ( IDirectory toCreate , string createIn ) { if ( toCreate == null ) { throw new ArgumentNullException ( nameof ( toCreate ) ) ; } VisitDynamic ( toCreate , createIn ) ; return new LocalDirectory ( null , Path . Combine ( createIn , toCreate . Name ) ) ; }
Creates the specified file system tree in the specified location
Creates the specified file system tree in the specified location
None
toCreate
IDirectory
The file system tree to create
The file system tree to create
createIn
string
The path to create the tree in
The path to create the tree in