PathDifference() public static method

public static PathDifference ( string filePath, string directory ) : string
filePath string
directory string
return string
        private string GetRelativePath(HttpServerUtilityBase server, BundleFile bundleFile, string filePath)
        {
            var relativeBundlePath = bundleFile.IncludedVirtualPath.Remove(bundleFile.IncludedVirtualPath.IndexOf(@"\"));
            var bundlePath         = server.MapPath(relativeBundlePath);

            return(FileToolkit.PathDifference(filePath, bundlePath));
        }
        private static IHtmlString BuildTemplates(string templatePath, List <string> files, ITemplateNamer templateNamer)
        {
            var templates = new StringBuilder();

            foreach (var templateFile in files)
            {
                var pathDiff     = FileToolkit.PathDifference(templateFile, templatePath);
                var templateName = templateNamer.GenerateName(pathDiff, Path.GetFileName(templateFile));
                templates.AppendFormat("<script type='text/x-handlebars' data-template-name='{0}'>\n", templateName);
                templates.AppendLine(File.ReadAllText(templateFile));
                templates.AppendLine("</script>");
            }
            return(new HtmlString(templates.ToString()));
        }