add readFileSync to get all files which are to be copied