File appears on the tel but not on the pc

generate a txt file in /file.txt
however in the phone's file explorer the file appears but when I connect the usb cable the same file does not appear on the PC.
compiled application

Maybe you need ?

I found that after generating the file, restart the device the file appears on the pc via the usb cable