Abp.Resources.Embedded.EmbeddedResourcePathInfo.NormalizeFolderName(string)

Here are the examples of the csharp api class Abp.Resources.Embedded.EmbeddedResourcePathInfo.NormalizeFolderName(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

1 Example 7

1. Example

Project: ABP
Source File: EmbeddedResourcePathInfo.cs
private static string NormalizeResourcePath(string path)
        {
            var pathFolders = path.Split('/');
            if (pathFolders.Length < 2)
            {
                return path;
            }
            
            var sb = new StringBuilder();

            for (var i = 0; i < pathFolders.Length - 1; i++)
            {
                sb.Append(NormalizeFolderName(pathFolders[i]) + "/");
            }

            sb.Append(pathFolders.Last()); //Append file name

            return sb.ToString();
        }