Found out though that I or it was in the correct directory. I had the idea I'd done something elementary wrong in my code. I'll let my output go into my to_move direct as a solution. thanks again. Gert
Also, as another sanity check, print the loop variables within each of your loops to make sure the loops are at least trying to process a list of files.