add realpath attribute to File model.