adding file util class
checking for valid directory