`os.listdir()`'s results depend on the type of the argument passed to it.