This looks wrong; the function is supposed to receive a filespec like `done.txt`.