refactor(3): VideoDownloader.Browser library - tabs/find/search-engine/zoom/bookmark-history stores extracted from App (66 GREEN)
This commit is contained in:
parent
6df9f81b4a
commit
e8ec1350b3
20 changed files with 63 additions and 31 deletions
|
|
@ -1,14 +1,7 @@
|
|||
namespace VideoDownloader.App;
|
||||
|
||||
/// <summary>
|
||||
/// 앱 데이터 디렉터리 결정. 기본 %AppData%/VideoDownloader.
|
||||
/// 환경변수 VD_DATA_DIR 로 오버라이드 — E2E 테스트가 실사용자 프로필/설정/세션과
|
||||
/// 격리된 임시 디렉터리에서 실행되도록 한다(결정적 테스트를 위한 공식 후크).
|
||||
/// </summary>
|
||||
/// <summary>앱 데이터 디렉터리(CorePaths 위임) — VD_DATA_DIR 오버라이드 지원.</summary>
|
||||
public static class AppPaths
|
||||
{
|
||||
public static string DataDir =>
|
||||
Environment.GetEnvironmentVariable("VD_DATA_DIR") is { Length: > 0 } env
|
||||
? env
|
||||
: Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "VideoDownloader");
|
||||
public static string DataDir => VideoDownloader.Core.Platform.CorePaths.DataDir;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue