fixed the issue. Will look into that further I used to have a problem like you， The directory where the files are located is mount another disk.Try to unmount the disk, maybe you can found your files. Or, the disk where your files located maybe unmount by force.
Expect tcl "file exists" function failing even though "ls" shows file
I wish did fix the issue. After send, you need to wait for the next shell prompt to show up which means the last command has completed. That's why send is usually followed by expect. For a quick test you can also add a sleep 1 after send. Another possibility is that the Expect process' current dir is not the same as the spawned shell process' current dir.