Skip to content

Commit

Permalink
extension necessary for db backup download
Browse files Browse the repository at this point in the history
  • Loading branch information
sventhiel committed Jul 25, 2023
1 parent e4b6271 commit b3d0c35
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Extensions/FileInfoExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
using System.IO;
using System;

namespace Manchu.Extensions
{
public static class FileInfoExtensions
{
public static string GetFileNameWithoutExtension(this FileInfo @this)
{
return Path.GetFileNameWithoutExtension(@this.FullName);
}

public static string GetExtension(this FileInfo @this)
{
return Path.GetExtension(@this.FullName);
}
}
}

0 comments on commit b3d0c35

Please sign in to comment.