BlogEngine.Core.Providers.UNCFileSystemProvider.ClearFileSystem C# (CSharp) Method

ClearFileSystem() public method

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