Example #1
0
        public static string GetRelativePath(FlowWindow window, string token)
        {
            var result = GetParentContainers(window, FlowSystem.GetContainers())
                         .Reverse()
                         .Select(w => w.directory)
                         .Aggregate(string.Empty, (total, path) => total + token + path);

            if (string.IsNullOrEmpty(result) == true)
            {
                result = token + FlowDatabase.OTHER_NAME;
            }

            result += token + window.directory;

            return(result);
        }