FluentFs.Core.Directory.Create C# (CSharp) Метод

Create() публичный Метод

Creates the folder
public Create ( OnError onError ) : Directory
onError OnError Allows you to set the error behavior
Результат Directory
        public Directory Create(OnError onError)
        {
            FailableActionExecutor.DoAction(onError, _fileSystemWrapper.CreateDirectory, _path);
            return this;
        }

Same methods

Directory::Create ( ) : Directory

Usage Example

Пример #1
0
        public void DirectoryExamples()
        {
            var dir = new Directory(@"c:\temp");
            dir.Create(OnError.Continue);
            dir.Delete(OnError.Continue);

            var stuffDir = dir.SubFolder("stuff");
            var allFiles = dir.Files();
            var dllFiles = dir.Files("*.dll");

            var file = dir.File("web.config");
        }
All Usage Examples Of FluentFs.Core.Directory::Create