public static string[] GetTorrents() { try { string[] files = Directory.GetFiles(SettingsHandler.GetTorrentSaveFolder(), "*.torrent", SearchOption.TopDirectoryOnly); return (files.Length == 0) ? null : files; } catch { return null; } }