We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9d2ce4 commit 2b50aafCopy full SHA for 2b50aaf
src/manage/uninstall_command.py
@@ -110,11 +110,11 @@ def execute(cmd):
110
cleanup(cmd, [])
111
# Clean up other lingering directories
112
LOGGER.info("Purging remaining files")
113
- for d in cmd.install_dir.listdir():
+ for d in cmd.install_dir.iterdir():
114
if d.is_dir():
115
LOGGER.verbose("Removing %s", d)
116
rmtree(d, after_5s_warning=warn_msg.format("remaining files"))
117
- if any(cmd.install_dir.listdir()):
+ if any(cmd.install_dir.iterdir()):
118
LOGGER.warn("Unable to fully remove %s.", cmd.install_dir)
119
LOGGER.debug("END uninstall_command.execute")
120
return
0 commit comments