Hello,
I think that is exactly
soopy's point. If you are running the script on a Linux machine, you will not have the error because "ls" is the usual command for listing directory contents.
The "ls" command does not exist on a Windows machine. So the error occurs.
Or are you are running your script from a Linux machine and trying to recursively put to a Windows machine? Doesn't matter... it still won't work because the "ls" command on the Windows box will fail. It doesn't exist.
regexes