This is wrong—it will not handle jobs inside folders.