private bool IsALogFile(string file) { if (file.EndsWith(_logExtension)) return true; else return false; }