-File.WriteAllText(rssPath, output);
\ No newline at end of file
+Console.WriteLine("RSS generated, outputting to console and file");
+Console.WriteLine(output);
+
+File.WriteAllText(rssPath, output);
+
+string FindDirectory(string folderName)
+{
+ var folder = Path.Combine(Directory.GetCurrentDirectory(), $"../{folderName}");
+ if (!Directory.Exists(folder))
+ {
+ folder = Path.Combine(Directory.GetCurrentDirectory(), $"../../../../{folderName}");
+ }
+ return folder;
+}
\ No newline at end of file