Microsoft.WindowsAzure.Commands.Test.Utilities.Common.FileSystemHelper.GetRelativePath C# (CSharp) Method

GetRelativePath() public method

Get the path of a file relative to the FileSystemHelper's rootPath.
public GetRelativePath ( string fullPath ) : string
fullPath string The full path to the file.
return string
        public string GetRelativePath(string fullPath)
        {
            Debug.Assert(!string.IsNullOrEmpty(fullPath));
            Debug.Assert(fullPath.StartsWith(RootPath, StringComparison.OrdinalIgnoreCase));
            return fullPath.Substring(RootPath.Length, fullPath.Length - RootPath.Length);
        }