I want to create a directory say TestDir
but only when that directory does not exist. I don't find the way the check the existence of that directory.
I am using following function to create the directory.
CreateDir('TestDir')
How should I make sure that I use this CreateDir
function only when TestDir
does not exist?
ForceDirectories
to check and create at the same time. – Crossroads