FluentFs.Core.Directory.Create C# (CSharp) Method

Create() public method

Creates the folder
public Create ( OnError onError ) : Directory
onError OnError Allows you to set the error behavior
return Directory
        public Directory Create(OnError onError)
        {
            FailableActionExecutor.DoAction(onError, _fileSystemWrapper.CreateDirectory, _path);
            return this;
        }

Same methods

Directory::Create ( ) : Directory

Usage Example

Exemplo n.º 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