// -------------------------------------------------------------------------------------------------------------------- // // This file is part of the HandBrake source code - It may be used under the terms of the GNU General Public License. // // // Defines the DirectoryUtilities type. // // -------------------------------------------------------------------------------------------------------------------- namespace HandBrakeWPF.Utilities { using System; using System.IO; /// /// The directory utilities. /// public class DirectoryUtilities { /// /// The get user storage path. /// /// /// The is nightly. /// /// /// The . /// public static string GetUserStoragePath(bool isNightly) { if (isNightly) { return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "HandBrake", "Nightly"); } else { return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "HandBrake"); } } } }