Re: os.unlink() AND win32api.DeleteFile()

2006-01-24 Thread rbt
Tim Golden wrote: > [rbt] > > | Can someone detail the differences between these two? On > | Windows which is preferred? > > Looks like that's been answered elsewhere. > > | Also, is it true that win32api.DeleteFile() can remove the 'special' > | files located in the 'special' folders only acces

Re: os.unlink() AND win32api.DeleteFile()

2006-01-24 Thread Tim Golden
[rbt] | Can someone detail the differences between these two? On | Windows which is preferred? Looks like that's been answered elsewhere. | Also, is it true that win32api.DeleteFile() can remove the 'special' | files located in the 'special' folders only accessible by the shell | object such as

Re: os.unlink() AND win32api.DeleteFile()

2006-01-24 Thread Tim Roberts
rbt <[EMAIL PROTECTED]> wrote: > >Can someone detail the differences between these two? On Windows which >is preferred? os.unlink() calls unlink() in the C run-time library. In VC++, unlink() passes its parameter directly to DeleteFile. There is no difference. DeleteFile() is the only way to de

Re: os.unlink() AND win32api.DeleteFile()

2006-01-23 Thread Martin v. Löwis
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 -- http://mail.python.org/mailman/listinf