From a293707d71a29d5baffe2ab091e60a3d79bbfa63 Mon Sep 17 00:00:00 2001 From: v-alexjo Date: Mon, 6 Jun 2016 09:29:30 -0700 Subject: [PATCH] XDG cache home now will create powershell child folder --- src/System.Management.Automation/CoreCLR/CorePsPlatform.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs b/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs index c2e5396626..b7748cd973 100644 --- a/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs +++ b/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs @@ -163,6 +163,11 @@ namespace System.Management.Automation else { + if (!Directory.Exists(Path.Combine(xdgcachehome, "powershell"))) + { + Directory.CreateDirectory(Path.Combine(xdgcachehome, "powershell")); + } + return Path.Combine(xdgcachehome, "powershell"); }