BlogEngine.Core.Providers.XmlFileSystemProvider.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 = RelativeFilePath(VirtualPath);
            if (!this.DirectoryExists(VirtualPath))
                return;
            var aPath = BlogAbsolutePath(VirtualPath);
            var sysFile = new FileInfo(aPath);
            sysFile.Delete();
        }