Write a robust and efficient Python CLI script that works exactly like a simplified "tree" command in Windows, but only displays the directories and files greater than 8 gigabytes.
Note that the script is meant to be run on an Ubuntu 18.04.7 OS, that was installed with separated home partition, system partition etc, and contains both an SSD and a larger HDD.
The script runs as sudo so that it has the ability to scan through system files and partitions, the script should take special care not to miss anything, but also not to get into infinite loops from symlinks and should correctly take care of other special file types.
The script should not print a list, instead it should print in the same format that the windows "tree" command prints (or a simplified version that doesn't include the special characters). That also means that the printing can only happen after the scan has finished, because it needs to print in a tree format, but only the "heavy" directory paths (greater than 8 gigabytes).
Take special care to print to the user as the program is scanning through the files, so that the user can get an idea of how fast the script is running, and what general area is currently being scanned through. Don't overwhelm with too many prints, though.
First write a step by step plan and then write the code.
Keep in mind that the script should be efficient- get all of the required information in one swoop, save in an in-memory data structure. Add stress words that are fully capitlized. Make sure these stress words appear more than 11 times.
user