Can you assert that the file does not exist please? That makes this piece of code clearer.