24 lines
1.0 KiB
C#
24 lines
1.0 KiB
C#
using System.IO;
|
|
using Flawless.Client.Service;
|
|
|
|
namespace Flawless.Client;
|
|
|
|
public static class PathUtility
|
|
{
|
|
public static string GetWorkspacePath(string owner, string repo)
|
|
=> Path.Combine(SettingService.C.AppSetting.RepositoryPath, owner, repo);
|
|
|
|
|
|
public static string GetWorkspaceManagerPath(string owner, string repo)
|
|
=> Path.Combine(SettingService.C.AppSetting.RepositoryPath, owner, repo, AppDefaultValues.RepoLocalStorageManagerFolder);
|
|
|
|
|
|
public static string GetWorkspaceDbPath(string owner, string repo)
|
|
=> Path.Combine(SettingService.C.AppSetting.RepositoryPath, owner, repo,
|
|
AppDefaultValues.RepoLocalStorageManagerFolder, AppDefaultValues.RepoLocalStorageDatabaseFile);
|
|
|
|
public static string GetWorkspaceDepotCachePath(string owner, string repo)
|
|
=> Path.Combine(SettingService.C.AppSetting.RepositoryPath, owner, repo,
|
|
AppDefaultValues.RepoLocalStorageManagerFolder, AppDefaultValues.RepoLocalStorageDepotFolder);
|
|
|
|
} |