public static bool SlowFileExists(Directory dir, string fileName) { return dir.FileExists(fileName); /*try { dir.OpenInput(fileName, IOContext.DEFAULT).Dispose(); return true; } catch (FileNotFoundException e) { return false; }*/ }