The `BuildRoot` wants to create temporary directories in two locations, `rundir` (supplied as `path`) and `vardir`. Make sure these directories exist before trying to create temporary directories in them.
dir_fd
os.scandir()