This snippet is used to create a folder if it does not already exist.