cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Benoit_L
Regular Visitor

Comparing FTP directories with local folders

Dear community, 

I am new to Power Automate and trying to build my first (desktop) flow.

 

Context

I have a local folder with a new subfolder created each month, named YYYYMM. The current one is 202102, the next one will be 202103.

 

My monthly need

  1. uploading the files within the new folder to a FTP directory (the input directory)
  2. copying the folder to an archive FTP directory

Benoit_L_0-1615220726659.png

 

My idea 

I wanted to compare the folders list and the directories list, but Power Automate says that they are not compatible and I can not work on both lists (to detect if a new folder has been created and keep its name into a variable).

Also the list gives the full path and I am interested only in the subfolder name (MMMMYY) in order to know which one I should process for copy.

 

Benoit_L_1-1615221230344.pngBenoit_L_2-1615221240926.png

 

Any help would be appreciated 😋

2 REPLIES 2
FCGALLEG
Community Support
Community Support

Hi Benoit_L,

 

Please, check this thread, you can add the filter array within the Apply to each. below:https://powerusers.microsoft.com/t5/Building-Flows/Comparing-File-Lists/td-p/64178 

 

I hope it helps you.

 

Javier

Hello Javier, thank you for your reply

Maybe I do not understand the solution on the post you mention, but as explained in my message :

- there is a folders list and a directories list, and the tools apparently can not work as those are different kind of lists (I got an error message)

- the list include the entire path but I can only compare the name of the final folder, the path is different on my local Drive versus FTP

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (3,130)