Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

Extracting archive with empty folders on SharePoint



I would like to create a flow that extracts a file containing a certain folderstructure each time an item is added so a list. The flow itself is preaty simple to setup, however, if the folder is empty in the archive(ie contains no files) its not created at all in sharepoint. A workaround would be to place a simple text file in each folder. But the folderstructure is quite large and it would be quite time consuming to do so. Is there another way around this?


Help appriciated!

Community Support
Community Support

Re: Extracting archive with empty folders on SharePoint

Hi @josefulander,


According to your description, I created a flow with the trigger “When an item is created” and the action “Exact folder” to test this issue.

The flow is configured likes below.

Then when an item is created, the specific file would be exacted to the destination folder no matter the folder is empty or not.



I am not able to reproduce your issue on my side. If your flow configuration is different with mine, please share a screenshot to help reproduce this issue on my side.


Best regards,
Mabel Mao

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
New Member

Re: Extracting archive with empty folders on SharePoint

This post ist already quite old. I do however have the same problem with sharepoint online. Did you find a better solution than placing text files in each folder?

New Member

Re: Extracting archive with empty folders on SharePoint

Same here Smiley Sad

Did you ever get a resolution to this. Placing a file in each folder is untenable for me too.

Super User
Super User

Re: Extracting archive with empty folders on SharePoint

Adding files to the folders is quite cumbersome. Don't do it. 


You probably won't like the solution but why not have a SharePoint Site with your templates unzipped?


You can copy the folder to the destination (empty folders and all). If the folders are empty, you won't gain much in zipping them anyway. 


Here are the steps (I have a full article with all details here)


1. Create the SharePoint site with the templates

2. Create a Simple Flow

I'm using the same instance as source and destination for this example.

3. Run the flow


Let me know if this solves your issue and don't forget to mark as "Accepted" if this helped.

Helpful resources


Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (8,576)