"""Triforce Setup asks for room on the disk before it needs it (setup/Guard.cs Space; no Setup is started). A build could be started on a disk with too little room (the line under the form only turned red) and stopped somewhere in its 45 minutes; the tools were downloaded and unpacked without any look at the disk, and a disk that filled left half a tools folder and an error that named no cause. Compiles Guard.cs, Setup.cs's Tools class (cut out of it) and tests/setup_space_test.cs, and runs them: the question (what it takes with the margin against what is free, both numbers in the refusal), the disk asked for a folder that is still to make, the error of a disk that filled, and the tools unpacked from authored zips into a temporary folder: whole; refused before the first file when there is no room, the tools there untouched; a damaged zip's half removed. Reads the source for the window's side: the Build button asks first and still lets the player go on, the tools' room is asked before their download. python -I -B tests/test_setup_space.py """ import sys from pathlib import Path RUN_ALL_SKIP = {"linux": "Triforce Setup is a Windows program (.NET Framework 4.8)"} sys.path.insert(0, str(Path(__file__).resolve().parent)) import setup_cs # noqa: E402 def check_source(): shell = setup_cs.source("setup/Shell.cs") click = shell[shell.index("BuildButton.Click += (_, _) =>"):shell.index('SetupBack = Part