CSL.DirectoryHandler.GetTorrents C# (CSharp) Method

GetTorrents() public static method

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