in reply to Re: Correct code for deleting old file?
in thread Correct code for deleting old file?
Kind of depends on what you want to report as an error though. I'd think you'd want to be quiet if the file doesn't exist yet but whine if it exists and unlink fails (maybe the file or its directory got to be read only for you somehow).