BetterCms.Core.Services.Storage.FtpStorageService.ResolvePath C# (CSharp) Method

ResolvePath() private method

private ResolvePath ( string url ) : string
url string
return string
        private string ResolvePath(string url)
        {
            if (!url.StartsWith(rootUrl, StringComparison.OrdinalIgnoreCase))
            {
                throw new StorageException(string.Format("RootUrl [{0}] must match for the url [{1}]", rootUrl, url));
            }

            return url.Substring(rootUrl.Length);
        }