This commit is contained in:
@@ -64,7 +64,7 @@ namespace AyaNova.Util
|
||||
//create path if doesn't exist already
|
||||
private static void EnsurePath(string path)
|
||||
{
|
||||
Console.WriteLine($"FileUtil::EnsurePath path = [{path}]");
|
||||
//Console.WriteLine($"FileUtil::EnsurePath path = [{path}]");
|
||||
if (!Directory.Exists(path))
|
||||
Directory.CreateDirectory(path);
|
||||
}
|
||||
@@ -821,6 +821,15 @@ namespace AyaNova.Util
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static string StringPathDecodeEnvironmentVariables(string path){
|
||||
if(string.IsNullOrWhiteSpace(path)){
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
return System.Environment.ExpandEnvironmentVariables(path);
|
||||
|
||||
}
|
||||
#endregion general utilities
|
||||
|
||||
}//eoc
|
||||
|
||||
Reference in New Issue
Block a user