How to move multiple files with FTP

I am attempting to utilize FileZilla’s FTP to move several files from one folder to another, however the method I used only moved one file.

your help will be highly appreciated

1 Like

You’ll need to use a loop, I’d suggest For Each.

@efelantti For each file in folder or for each folder in folder?
Because i used for each file in folder i received an error so i am not sure if FTP will be able to read the for each

Neither (those would only work on local file system). You’ll need to use “Enumerate Objects” to get the FTP objects. Then you can loop through the results and move the items that you want.

Hi @pabaleloh,

Use below approach.

  1. Use Enumerate Objects to get all the file in the directory. Activities - Enumerate Objects (uipath.com)
  2. Loop through output property Files variable
  3. Use Move Item. Use File paths

Thanks,
Ashok :slight_smile:

@efelantti thank you so much

1 Like

@ashokkarale thank you so much

1 Like

@ashokkarale please share a screenshot of this solution my leader

@pabaleloh sorry I don’t have code. It’s just logic.

Perhaps something like this would work - unfortunately I don’t have an FTP server to test with right now :sweat_smile:

image

1 Like

@ashokkarale no problem thank you

@efelantti Thank you so much

As the accepted answer changed by @pabaleloh to yours’s, @efelantti please add my answer as description to your answer as it will make full answer for the rest of the community.

Thanks,
Ashok :slight_smile:

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