Python provides native ways to check for a directory’s existence using the os and pathlib modules.
os
pathlib
Python’s tempfile module is built for this.
tempfile
Reading text files is fundamental - and has been around since the early days of programming.
Using Python’s sys module, you can snag those command line arguments easily.
sys
Python’s built-in open() function is the most common way to write to files.
open()
Python’s built-in sys module allows explicit writing to stderr.
stderr