Internal storage of a phone is alot more complicated than removable storage, you have to try one of these:
https://www.easeus.com/android-data-recovery-software/android-data-recovery.html
or
https://drfone.wondershare.com/android-recovery/phone-memory-data-recovery.html
which usually install an app on your phone that has the potential to overwrite your data
But really the question is what phone, android version, and is it rooted?
I remember using Testdisc, or photoRec.
Which was using the CDM commands. But tried to find the actual internal storage of the device, but weirdly could not find the device after plugging it into a computer.
So those two programs wasn't much help.
Tried putting the device into transfer files, then transfer images, and the other settings hoping it would make my device searchable on the programs. But wasn't succesfull, even tried placing the device into USB debugging mode which I saw was Told to keep off.
I remember reading that they support internal storage of devices so not quite sure what I was doing wrong why I couldn't get my computer to read my device when using these programs.
Meaning I was able to read my device but when running the program couldn't find my device through the program, Couldn't find the file.
Tried recuva as well but still couldn't pull up the file for my Samsung.
It's a Samsung Galaxy S9, not rooted.
Android version not sure off hand.
Can try those programs and see what happens.
Wonder if there's any programs that can search complete files/folders