How can we check to see if a folder exists on a shared root folder

We have files that are loaded on a shared drive and we use FTPS to load the files into Appian.

They are now going to change this so the root folder on the shared drive will have yearly folders:

Example folder structure:

Appian\Files\Upload\2020

Appian\Files\Upload\2021

Appian\Files\Upload\2022

I am trying to figure out with in a Appian Process model how I can tell it to check to see if with in Appian\Files\Upload    if the year folder I am looking for exists in that directory because it may not yet.

I need to basically have it tell me if in     Appian\Files\Upload     does 2020 exist

Does anyone have sample code of checking for a folder on a shared drive?

Thank you

  Discussion posts and replies are publicly visible