BetterCms.Core.Services.Storage.FtpStorageService.ResolvePath C# (CSharp) Méthode

ResolvePath() private méthode

private ResolvePath ( string url ) : string
url string
Résultat 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);
        }