refactor(1): detection App->Core + AppPaths (VD_DATA_DIR isolation for deterministic E2E)

This commit is contained in:
Yun Chan 2026-08-15 14:51:16 +09:00
parent 1aab8729fa
commit 9eb988440f
5 changed files with 29 additions and 7 deletions

View file

@ -7,8 +7,7 @@ namespace VideoDownloader.App.Browser;
/// 손상 파일은 백업 후 빈 목록을 반환(다음 저장이 원본을 덮어쓰는 데이터 손실 방지).</summary>
public static class BrowserStore
{
private static string Dir => Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VideoDownloader");
private static string Dir => AppPaths.DataDir;
private static string BookmarksPath => Path.Combine(Dir, "bookmarks.json");
private static string HistoryPath => Path.Combine(Dir, "history.json");
private static readonly JsonSerializerOptions JsonOpts = new() { WriteIndented = true };