BlogEngine.Core.Providers.UNCFileSystemProvider.ClearFileSystem C# (CSharp) Méthode

ClearFileSystem() public méthode

Clears a file system. This will delete all files and folders recursivly.
Handle with care... Possibly an internal method?
public ClearFileSystem ( ) : void
Résultat void
        public override void ClearFileSystem()
        {
            var root = GetDirectory("");
            foreach(var directory in root.Directories)
                directory.Delete();
            foreach(var file in root.Files)
                file.Delete();
        }