checked for existence of parent folder. If it does not exist, it will be
created by default