support fileExists flag in downloadFile callback