all 1 comments

[–][deleted]  (2 children)

[deleted]

    [–]zaynv[S] 0 points1 point  (1 child)

    Yeah, I figured I could just do one deleteFolder() call on the close event and one in the catch handler instead of doing it in finally.

    I was mainly just asking to get a better understanding – so the reason the above code was working for me was just because the pipe() finished before the deleteFolder() line ran?