updated isDir valdiator doc