need to just drop out if the path is a directory