13 lines
353 B
C#
13 lines
353 B
C#
using Humanizer;
|
|
|
|
namespace MycroForge.CLI.Extensions;
|
|
|
|
public static class StringExtensions
|
|
{
|
|
public static string NormalizePath(this string name)
|
|
{
|
|
var directoryPath = Path.GetDirectoryName(name).Underscore();
|
|
var filePath = Path.Join(directoryPath, name.Underscore().ToLower());
|
|
return filePath;
|
|
}
|
|
} |