check if src is a dir