agorushkin
agorushkin12mo ago

Deno.open() question

Does, when the process terminate, deno close the files if they were opened with Deno.open()?
2 Replies
Hexagon
Hexagon12mo ago
Always closing is best practise for many reasons. But... if your application crashes (or ends gracefully), the file descriptors will definitely be closed and disconnected from the process. No need to worry about that.
agorushkin
agorushkin12mo ago
Alright, thank you! Yeah, that was my main concern - I always close my files manially, so I was just wondering what happens if a crash occurs