Number of files in ePDM folder

Is it possible to retrieve number of files in ePDM folder by attaching it to a variable.

I would like to check project Output Folder every time workflow state reaches "Finished Design" and if it is empty to dissable the action.

Please any clues how to do it?

SolidworksSolidworks Pdm enterprise Pdm