SIL.CoreImpl.SpellingHelper.PathsToBackup C# (CSharp) Method

PathsToBackup() public static method

Return the files that should be backed up for the given dictionary. For now this is just the exc file, if it exists, and if the dictionary is not vernacular. (We assume any major language dictionary can be recovered from somewhere, and a vernacular one can be rebuilt from the WFI.)
public static PathsToBackup ( string dictId ) : IEnumerable
dictId string
return IEnumerable
		public static IEnumerable<string> PathsToBackup(string dictId)
		{
			var dict = GetSpellChecker(dictId);
			if (dict.IsVernacular)
				return new string[0];
			var exceptionPath = ((SpellEngine) dict).ExceptionPath;
			if (File.Exists(exceptionPath))
				return new string[] {exceptionPath};
			return new string[0];
		}