use path library
add DirectryNotFoundException