This code seems fine. As a matter of style, if it was me, I'd not use a switch here and just do

if (e.reason === 'modified' && e.path === videofile) { ... }