- introduce `LyricFlow.Core.Backend` with shared DTOs, rhyme/spellcheck engines, and REST endpoints - wire Python GUI/core to run and call the backend via new bridge/client modules - add backend parity/integration tests and update packaging/ignore settings
25 lines
715 B
C#
25 lines
715 B
C#
namespace LyricFlow.Core.Services;
|
|
|
|
public static class AppPaths
|
|
{
|
|
public static string AppDataDirectory()
|
|
{
|
|
var appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
|
|
if (string.IsNullOrWhiteSpace(appData))
|
|
{
|
|
appData = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".lyricflow");
|
|
}
|
|
|
|
var path = Path.Combine(appData, "LyricFlow");
|
|
Directory.CreateDirectory(path);
|
|
return path;
|
|
}
|
|
|
|
public static string ExplorerTrashDirectory()
|
|
{
|
|
var path = Path.Combine(AppDataDirectory(), "explorer_trash");
|
|
Directory.CreateDirectory(path);
|
|
return path;
|
|
}
|
|
}
|