To check folder existence you can use
to create one
WinApi::pathExists
,to create one
WinApi::createDirectory
or WinApi::createDirectoryPath
: str path = 'C:\\tmp\\aFolder';
;
if (!WinApi::pathExists(path))
{
WinApi::createDirectoryPath(path);
}