OSX is not Linux is not windows
Matthieu Moy
Matthieu.Moy at imag.fr
Wed Sep 19 10:55:32 BST 2007
Vincent Ladeuil <v.ladeuil+lp at free.fr> writes:
> try:
> os.unlink(path)
> except OSError, e:
> if not (e.errno == errno.EISDIR
Note that on Solaris, as root, this seems to corrupt your filesystem
(unlink on a directory doesn't fail, but leaves your reference
counting in a broken state for some reason which is behond my
imagination). Git had the problem a while ago and fixed it by placing
the test before the "unlink".
--
Matthieu
More information about the bazaar
mailing list