◐ Shell
clean mode source ↗

Remove unused private function shutil._ensure_directory

shutil._ensure_directory(path) has no caller and can be removed.

A word-boundary search across Lib, Modules, Python, Objects, and Include finds no reference outside its own definition, and a GitHub code search finds no downstream importer.