Browse Source

Ensure the folder exists for saving work

Rob Reynolds 7 years ago
parent
commit
b890220020
1 changed files with 9 additions and 0 deletions
  1. 9 0
      setup/setup.ps1

+ 9 - 0
setup/setup.ps1

@@ -0,0 +1,9 @@
+# If you change this value, also change it in the global settings
+# The name will also be saveDir
+$saveDir = "c:\chocolatey-auto-save"
+
+
+Write-Host "Ensuring that the Ketarin auto save folder is set appropriately."
+if (!(Test-Path($saveDir))) {
+  mkdir $saveDir
+}