not sure if we need to validate if its a dir or not.