checking for directory's existance