Problem tranferring strange files via ftp
Hi there,
I recently got a harddrive from a friend which is full to the max with jpg, png, gif, etc. A collection of all his vacation photos. He asked me if I could transfer them to his webserver.
No problem, I thought, put the harddrive into an old machine of mine, started my MC, and mounted his webserver via ftp. I then told MC to tranfer all the phtotos onto the webserver. I got loads of error messages, telling me that the photos are not where they were supposed to be.
I checked his harddrive more thoroughly, and found that his stupid camera, due to some obscure reasons, puts a space in front of every picture.
In other words, instead of "wife4.jpg," I have " wife4.jpg." Grrrr.... obviously, MC reads the filename, ignoring the space, so that he has "wife4.jpg" on his list for copying. But then, when he actually wants to touch the file in order to move him, he doesn't see it, because its real name is " wife4.jpg."
Anyone have a suggestion? Can I get ftp to read the space AND copy the space? Or better yet, anyone know of a script to rename all the blank$name.jpg into $name.jpg. That would be neater, I guess.
|