Migrate from old git host

This commit is contained in:
2025-01-31 11:16:42 +01:00
commit 44497e6b8d
77 changed files with 4687 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
namespace BlazorApp1.Helpers;
public static class FileHelper
{
public static string RemoveFileEnding(this string fileName)
{
int endingIndex = fileName.LastIndexOf('.');
return fileName.Remove(endingIndex);
}
public static string GetFileNameFromPath(this string path)
{
return path.Split('/')[^1]; // "Index from end expression". Same as final.length - 1
}
}