BlogEngine.Core.Providers.UNCFileSystemProvider.DeleteDirectory C# (CSharp) 메소드

DeleteDirectory() 공개 메소드

Deletes a spefic directory from a virtual path
Virtual path is the path starting from the /files/ containers The entity is queried against to current blog id
public DeleteDirectory ( string VirtualPath ) : void
VirtualPath string The path to delete
리턴 void
        public override void DeleteDirectory(string VirtualPath)
        {
            VirtualPath = CleanVirtualPath(VirtualPath);
            if (!this.DirectoryExists(VirtualPath))
                return;
            var aPath = VirtualPathToUNCPath(VirtualPath);
            var sysDir = new System.IO.DirectoryInfo(aPath);
            sysDir.Delete(true);
        }