Add folder param to download function