Amazon.KinesisTap.AutoUpdate/FileDownloader.cs
/// <summary>
/// Convert the url to path. Don't convert if it is already path
/// </summary>
/// <param name="url">Url or Path</param>
/// <returns>Path</returns>
Convert the url to path. Don't convert if it is already path
Convert the url to path . Don ' t convert if it is already path
public static string ConvertFileUrlToPath(string url)
        {
            if (Uri.TryCreate(url, UriKind.Absolute, out Uri uri))
            {
                return uri.LocalPath;
            }
            else
            {
                return url;
            }
        }
public static string ConvertFileUrlToPath ( string url ) { if ( Uri . TryCreate ( url , UriKind . Absolute , out Uri uri ) ) { return uri . LocalPath ; } else { return url ; } }
Convert the url to path.
Convert the url to path .
None
url
string
Url or Path
Url or Path