redo
redo copied to clipboard
Fix directory nonexistent issue
I found the minimal do fails with directory nonexistent in some case when the full redo works fine. This PR fixes the issue.
A minimal repro with the instructions are available at https://github.com/maoe/minimal-do-repro.
Although the issue goes away with this fix, I'm not really sure if this is the right way. Please let me know if there's a better way to fix the issue.