You can retrieve files and folders after an unexpected shutdown on your Mac with data recovery software as illustrated in the following procedure.
Download and install Disk Drill for Mac.
Launch Disk Drill and select your Mac’s primary disk.
Scan the disk for recoverable data.
Review the results and select items to restore after the shutdown.
Click Recover and choose a save location for the restored files.