New submission from Dan Snider <mr.assume.a...@gmail.com>: It appears sometime recently-ish that POSIX updated remove to the following:
#include <stdio.h> int remove(const char *path); If path does not name a directory, remove(path) shall be equivalent to unlink(path). If path names a directory, remove(path) shall be equivalent to rmdir(path). ---------- messages: 413499 nosy: bup priority: normal severity: normal status: open title: Allow os.remove to defer to rmdir type: enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue46791> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com