public static GetFullPath ( string path ) : string | ||
path | string | |
return | string |
public static string GetFullPath(string path)
{
Throw.IfNullOrEmpty(nameof(path), path);
path = CheckForBaseDirectory(path);
path = Path.GetFullPath(path);
Throw.IfFalse(nameof(path), Directory.Exists(path), "Unable to find directory: {0}", path);
return path;
}
/// <summary> /// Initializes ImageMagick with the specified configuration files in the specified the path. /// </summary> /// <param name="configFiles">The configuration files ot initialize ImageMagick with.</param> /// <param name="path">The directory to save the configuration files in.</param> public static void Initialize(ConfigurationFiles configFiles, string path) { Throw.IfNull(nameof(configFiles), configFiles); string newPath = FileHelper.GetFullPath(path); InitializePrivate(configFiles, newPath); }