cancel
Showing results for 
Search instead for 
Did you mean: 

Check contents of folder

RichardLoughins
Level 4
Hi, I have a requirement to check if a particular folder is empty before any files are uploaded to the folder. Does anyone know of a way to configure a decision stage to check if the folder is empty, and based on the result, move to the next stage? I've tried using the File Management - Get Files action, which has a files output, and will show as empty if no files can be found. However, I'm unsure how to use this as part of a decision (or similar) stage. I could of course use the File Management - Delete Files action to remove any existing files, but as it's essential the folder is completely empty, I'd like to add another stage as some extra assurance to check that nothing has been left behind. Any ideas? Thanks, Richard
1 REPLY 1

RichardLoughins
Level 4
Thanks Bastiaan! Works perfectly! Much appreciated