SenseNet.ContentRepository.ContentNamingHelper.EnsureExtension C# (CSharp) Method

EnsureExtension() public static method

public static EnsureExtension ( string nameBase, string reqext ) : string
nameBase string
reqext string
return string
        public static string EnsureExtension(string nameBase, string reqext)
        {
            var ext = System.IO.Path.GetExtension(nameBase);
            if (string.Equals(ext, reqext))
                return nameBase;

            return nameBase + reqext;
        }
        private static string GetNewPath(Node container, string defaultName, int index, out string newName)