Beispiel #1
0
        public string Expand(IDocument d)
        {
            var parts = VariableUtilities.SplitPath(d.Path);

            if (parts.Length == 0)
            {
                return("");
            }

            return(parts[parts.Length - 1]);
        }
Beispiel #2
0
        public string Expand(IDocument d)
        {
            var s = "";

            var parts = VariableUtilities.FolderPathParts(d);

            if (parts.Count > 0)
            {
                s = parts[parts.Count - 1];
            }

            return(s);
        }
Beispiel #3
0
 public string Expand(IDocument d)
 {
     return(string.Join("/", VariableUtilities.FolderPathParts(d)));
 }