AssetBundleGraph.FileUtility._PathCombine C# (CSharp) Method

_PathCombine() private static method

private static _PathCombine ( string head, string tail ) : string
head string
tail string
return string
        private static string _PathCombine(string head, string tail)
        {
            if (!head.EndsWith(AssetBundleGraphSettings.UNITY_FOLDER_SEPARATOR.ToString())) {
                head = head + AssetBundleGraphSettings.UNITY_FOLDER_SEPARATOR;
            }

            if (string.IsNullOrEmpty(tail)) {
                return head;
            }

            if (tail.StartsWith(AssetBundleGraphSettings.UNITY_FOLDER_SEPARATOR.ToString())) {
                tail = tail.Substring(1);
            }

            return Path.Combine(head, tail);
        }