In the __init__ method check if the directory exists otherwise raise an error.
In the init method check if the directory exists otherwise raise an error.