check To Create Dirs
Method to check if the pathname (without the name and the suffix of the file to save) given by the user exists then if not exists create that pathname
Parameters
path Name
: the pathname where save the file
Throws
when an error occurred during the creation of the directories