Add create flag to file.managed. fix #3944