"Download this directory" API

Hi Gitlab friends, currently I’m using org.gitlab.api to manipulate with repositories and I have a function to download the directory on gitlab (like function “Download this directory” on gitlab website), but I can’t find the api/method for this. It had method getFileArchive() but it download all the project, what i want is just the directories inside it. Could anyone give an advice for this?

Thanks a lot! :blush: