Is there a way to download a complete subdir from resources from a shared library?

Hi,
I’m new to jenkins. I was building some pipelines using shared libraries.
I put some scripts in resources to use with some steps. For single files using “writeFile” with “libraryResource” no problem, but what If I need all the files in a subfolder? do I need to use “writeFile” for each one or there is a method to copy a complete dir?

Regards,