namespace YKanBan.Storage.Workspace;
///
/// Well-known file and folder names inside a workspace's .ykanban structure,
/// plus helpers that combine them with a workspace folder path.
///
public static class WorkspacePaths {
///
/// Name of the workspace root folder created inside a managed project.
///
public const string RootFolderName = ".ykanban";
///
/// Name of the SQLite database inside .ykanban.
///
public const string DatabaseFileName = "ykanban.db";
///
/// Name of the exclusive lock file inside .ykanban.
///
public const string LockFileName = "ykanban.lock";
///
/// Returns the .ykanban root path for a workspace folder.
///
/// The workspace folder path.
/// The path of the .ykanban folder.
public static string Root(string folderPath) => Path.Combine(folderPath, RootFolderName);
///
/// Returns the workspace database path for a workspace folder.
///
/// The workspace folder path.
/// The path of ykanban.db.
public static string Database(string folderPath) => Path.Combine(Root(folderPath), DatabaseFileName);
///
/// Returns the workspace lock file path for a workspace folder.
///
/// The workspace folder path.
/// The path of ykanban.lock.
public static string LockFile(string folderPath) => Path.Combine(Root(folderPath), LockFileName);
}