• (nodebb)

    Dateline : 2025/11/26.

    There are no comments on this article yet (there will be in a moment), which might be because the actual dateline on the article is 2025/12/02, and yet the Random Article button let me see it anyway...

  • L (unregistered) in reply to Steve_The_Cynic

    did you submit it to last week Error'd?

  • (nodebb) in reply to L

    Unfortunately, I didn't think of doing that at the time, then I forgot about it in the meantime, until I saw it come up today.

  • (nodebb)

    Ooohhh, that would have been WAY too much fun!

    I need to get out more....

  • (nodebb)

    I'm going to go out on a limb and assume ExtractFileName isn't a pure function either, which would make debugging all the more painful.

  • (nodebb)

    It seems a fairly minor WTF but the whole

    if FileExists(someFile) then
    begin
      { do something with someFile }
    end;
    

    is itself a WTF since there is a race condition in that, if it exists, something else might have deleted it before you get to do what you want to do with it. You might as well just go ahead and do the operation without testing for existence and handle the errors if they arise.

  • (nodebb)

    ExtractFileName is a pure function. It returns the argument without the drive and directory.

Leave a comment on “The Destination Dir”

Log In or post as a guest

Replying to comment #687947:

« Return to Article