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

DeleteDirectory() public method

public DeleteDirectory ( string path, bool recursive = false ) : void
path string
recursive bool
return void
        public virtual void DeleteDirectory(string path, bool recursive = false)
        {
            foreach (var file in Paths.Keys.ToList())
            {
                if (file.StartsWith(path))
                {
                    Paths.Remove(file);
                }
            }
            Deleted.Add(path);
        }