Local_file problem

#this is configuration.yaml code
homeassistant:
  # HA접속시 표시되는 이름
  name: LAB2
  whitelist_external_dirs:
    - /config/www/images
    
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
 
#local_file_update_file_path:
    #file_path: /config/www/images/cam_snapshot.jpg


# Example configuration.yaml entry
camera:
  - platform: local_file
    file_path: /config/www/images/snapshot.jpg


# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
#   base_url: example.duckdns.org:8123

# Text to speech
tts:
  - platform: google_translate


#this is script.yaml code
script:
  snapshot_cam:
    sequence:
    - condition: state
      entity_id: camera.lubacam
      state: 'idle'
    - service: camera.snapshot
      data_template:
        entity_id: camera.lubacam
        file_path: /config/www/images/snapshot.jpg

# this is automation.yaml code
automation:
  - alias: last motion time
    initial_state: 'on'
    trigger:
      platform: state
      entity_id: binary_sensor.motion_CGB
      from: 'off'
      to: 'on'
    action:
      - service: script.snapshot_cam
      
      - service: camera.local_file_update_file_path
        data_template:
          entity_id: camera.local_file
          file_path: /config/www/images/snapshot.jpg

I want to save screenshot in my local folder. but “Could not read camera lubacam_snapshot image from file: /config/www/images/snapshot.jpg” error log…
thank you for your reply