NuSelfUpdate.Tests.Helpers.MockFileSystem.InternalGetDirectories C# (CSharp) Method

InternalGetDirectories() private method

private InternalGetDirectories ( string path ) : IEnumerable
path string
return IEnumerable
        IEnumerable<string> InternalGetDirectories(string path)
        {
            foreach (var index in IndexOfAll(path, Path.DirectorySeparatorChar))
            {
                yield return path.Substring(0, index);
            }
            yield return path;
        }