Working on my 'elder' iMac (High Sierra) I noticed that a directory I have been working in shows me files that are there. But in Terminal, viewing the same directory, I see files that should have been just deleted. The directory I'm working in is where I am converting .flac files to .mp3 with ffmpeg via a Perl script. Once converted, I delete the files via the Perl script. So why is there a difference between what Finder shows me and what Terminal shows me?
Results of ls -l /Volumes
~/Desktop/Colourbox - Disc 4 (2012) [user] ls -l /Volumes total 8 drwxrwxr-x 25 user admin 918 Jul 31 11:24 Backup3 lrwxr-xr-x 1 root wheel 1 Sep 8 10:14 Macintosh HD -> / drwxrwxr-x 13 root wheel 510 Sep 8 11:16 Nano drwxrwxrwx 33 user wheel 1360 Sep 3 18:00 echo1 drwxrwxr-x+ 18 root wheel 952 Jun 27 09:07 femto drwxrwxr-x 9 user wheel 544 Jul 30 17:02 ssd1 2021-09-08 11:43:44 ~/Desktop/Colourbox - Disc 4 (2012) [user]
Relevant code is a couple of subroutines in a large script so will have to pull out only the code applicable.