private static void CreateLocaleDirectory(String path, LanguageUtil.ELanguage locale) { var destinDir = DirectoryWithLangUtil.LocalizedDir(path, locale); try { //create a base dir based on language Directory.CreateDirectory(destinDir); } catch (DirectoryNotFoundException e) { Console.Out.WriteLine("createLocaleDirectory failed:{0}", e.Message); Console.Error.WriteLine("Could not create directory {0}", Path.GetFullPath(destinDir)); } }
private static string[] GetDocumentPathListOf(String path, LanguageUtil.ELanguage locale) { var destinDir = DirectoryWithLangUtil.LocalizedDir(path, locale); string[] sourceMemFiles = null; try { sourceMemFiles = Directory.GetFiles(destinDir); } catch (DirectoryNotFoundException) { Console.Error.WriteLine("Could not read from directory {0}. Please run DocDissector first!", path); } return(sourceMemFiles); }