Why doesn't os.remove work on directories?

Random832 random832 at fastmail.com
Tue Dec 22 23:29:11 EST 2015


This is surprising to anyone accustomed to the POSIX C remove
function, which can remove either files or directories.  Is there
any known rationale for this decision?




More information about the Python-list mailing list