From 9b63bc0ab861d8f7556f5e6ed990de7e65103243 Mon Sep 17 00:00:00 2001 From: Joe Biellik Date: Sun, 7 Jan 2018 17:01:43 +0000 Subject: [PATCH] Create appdata directories on demand This creates appdata directory trees on demand, fixing #266. --- TVRename#/TVRename/PathManager.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TVRename#/TVRename/PathManager.cs b/TVRename#/TVRename/PathManager.cs index 21592f6db..f118e557d 100644 --- a/TVRename#/TVRename/PathManager.cs +++ b/TVRename#/TVRename/PathManager.cs @@ -35,6 +35,8 @@ public static void SetUserDefinedBasePath(string path) protected static FileInfo GetFileInfo(string path, string file) { + Directory.CreateDirectory(path); + return new FileInfo(System.IO.Path.Combine(path, file)); }