Check Folder Size for Execution

looking for relevance here for action script we have one package that’s size is big around 10 GB action behavior is to copy file first on c:\app folder then execute… but some time setup folder already exist on locally c:\app if folder exist on c:\app that’s size 10 gb then skip download part and execute task for installation if folder not exist or size is less then start download file as normal…

I think I just answered something weirdly similar in
this thread