web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Comparing FTP director...
Power Automate
Unanswered

Comparing FTP directories with local folders

(0) ShareShare
ReportReport
Posted on by 2

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 😋

Categories:
I have the same question (0)
  • Javier Gallego Profile Picture
    Microsoft Employee on at

    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

  • Benoit_L Profile Picture
    2 on at

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 411

#3
David_MA Profile Picture

David_MA 337 Super User 2026 Season 1

Last 30 days Overall leaderboard