Quote Originally Posted by LuisLoez89 View Post
What i need is to ensure that the folder was created because some times the creation process fails. For that reason I use the while loop but I am afraid to the posibility of generate an infinite loop if the system is not able to create the folder. Is there any way to ensure the creation of a folder?

mkdir & rmdir returns you a bool variables in order to make sure folder creation/deletion succeeded or failed.