Пример #1
0
        private string GetName()
        {
            var parentPathResult = PathManager.GetParent(FullPath);

            if (!parentPathResult.IsSuccess)
            {
                throw new ArgumentException($"Could not get parent path from '{FullPath}'", parentPathResult.Exception);
            }

            return(FullPath.Replace(parentPathResult.Data, string.Empty).Trim('\\'));
        }