System.IO.FileSystem.CreateDirectory C# (CSharp) Méthode

CreateDirectory() public abstract méthode

public abstract CreateDirectory ( string fullPath ) : void
fullPath string
Résultat void
        public abstract void CreateDirectory(string fullPath);
        public abstract bool DirectoryExists(string fullPath);

Usage Example

        public void stay_with_the_default_if_no_other_config_file_is_found()
        {
            var fileSystem = new FileSystem();

            fileSystem.DeleteDirectory("Service");

            fileSystem.CreateDirectory("Service");
            fileSystem.CreateDirectory("Service", "bin");

            var expression = new RemoteDomainExpression();
            expression.ServiceDirectory = "Service";
            Path.GetFileName(expression.Setup.ConfigurationFile).ShouldEqual("BottleServiceRunner.exe.config");
        }
All Usage Examples Of System.IO.FileSystem::CreateDirectory