How to download a folder

Hi
I am new in RPA world :slight_smile:

I need to download a folder, all sub folder and files in it.
I tryed with ftp activities (With FTP Session / Download File) but i only manage to download one file not a folder :frowning:

Can you help me please?

Hi

Welcome to UiPath forum

Have a view on this thread for more ideas

Cheers @benjamin.denoual.test

Hi @benjamin.denoual.test

In order to get all files from directory including sub folder data/files, you can use the below one.

Directory.EnumerateFiles(“YourDirectory”, “*”, SearchOption.AllDirectories)

Later you can loop through each file item to download it separately.

Thank you.

Thank you :slight_smile:
It works with Enumerate Objects.
If Folder => Create folder
If File => Download

Have a nice day

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.