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