Added downloadDirectory method