Thanks, but it didn’t work.
Instead I found out to update the path in the database by running the following query which worked:
UPDATE wp6c_postmeta SET meta_value = REPLACE(meta_value, ‘/lyngsoes/’, ‘/lyngsoe2/’) WHERE meta_key = ‘__wpdm_files’
wp6c_postmeta