The ExistDir function checks for the existence of the specified folder.
Before processing actions on a folder, it is a good practise to test first if the folder exists. You will not get an error if in some circumstances, the folder does not exist.
<foldername>, string, name of the folder to test. A path can be included in <foldername>.
ret, integer. If <foldername> exists, the return value is 1. If not, the return value is 0. If the path specified in <foldername> is not valid, the return value is 0. If <directoryname> is in fact a filename, the return value is 0.