Programetically uploading and downloading folders

Hi, I am working on Sonatype Nexus set up for storing our project specific static raw files like ps1, sh, msi, py etc. I am able to upload and download one file at a time but facing issues while downloading/uploading the directories/folders.
Note :

  • As these are static files, we are not using tools like maven, nuget etc
  • I am using Raw Host type of repository for this purpose in Nexus

Any help on this is appreciated.