[Python-ideas] Have os.unlink remove directories on Unix (was: junction points on Windows)

random832 at fastmail.us random832 at fastmail.us
Tue Aug 27 19:52:23 CEST 2013


On Tue, Aug 27, 2013, at 11:47, Kim Gräsman wrote:
> I don't want to remove empty dirs, only links.

So only call it on links.

> > And the fact that windows
> > unlink() allows you to remove some (but not all) things that windows
> > considers to be directories is already violating the principle of being
> > thin wrappers around system calls.
> 
> Do you mean Python's os.unlink() here, or the Microsoft C-runtime's
> unlink()?

I'm talking about Python's unlink. The fact that it works to remove
directory symlinks is what I was talking about here.


More information about the Python-ideas mailing list