Public Access
Implement meeting assistant v1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
namespace MeetingAssistant;
|
||||
|
||||
public static class VaultPath
|
||||
{
|
||||
public static string Resolve(string path)
|
||||
{
|
||||
var expanded = Environment.ExpandEnvironmentVariables(path);
|
||||
if (expanded.StartsWith("~", StringComparison.Ordinal))
|
||||
{
|
||||
expanded = Path.Combine(
|
||||
Environment.GetFolderPath(Environment.SpecialFolder.UserProfile),
|
||||
expanded[1..].TrimStart(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar));
|
||||
}
|
||||
|
||||
return Path.GetFullPath(expanded);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user