I don't know OTOH if unlink will work with paths; it looks like this is dead code, anyway, and ought to be removed?