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

DeleteFile() public method

deletes a file by virtual path
public DeleteFile ( string VirtualPath ) : void
VirtualPath string virtual path
return void
        public override void DeleteFile(string VirtualPath)
        {
            VirtualPath = CleanVirtualPath(VirtualPath);
            if (!this.DirectoryExists(VirtualPath))
                return;
            var aPath = VirtualPathToUNCPath(VirtualPath);
            var sysFile = new FileInfo(aPath);
            sysFile.Delete();
        }