Exemplo n.º 1
0
        /// <inheritdoc />
        public string CreateCorpusPath(string adapterPath)
        {
            string ghRoot = GithubAdapter.GhRawRoot();

            // might not be an adapterPath that we understand. check that first
            if (!string.IsNullOrEmpty(adapterPath) && adapterPath.StartsWith(ghRoot))
            {
                return(StringUtils.Slice(adapterPath, ghRoot.Length));
            }

            return(null);
        }
Exemplo n.º 2
0
 /// <inheritdoc />
 public string CreateAdapterPath(string corpusPath)
 {
     return($"{GithubAdapter.GhRawRoot()}{corpusPath}");
 }