os.unlink() AND win32api.DeleteFile()

"Martin v. Löwis" martin at v.loewis.de
Tue Jan 24 01:24:38 EST 2006


rbt wrote:
> Can someone detail the differences between these two? On Windows which
> is preferred?

They do the same thing: unlink calls DeleteFile. The only difference is
how errors are reported.

For portability, os.unlink is preferred.

Regards,
Martin



More information about the Python-list mailing list