in reply to filenames with spaces causing problems

As others have said, it's a problem with the shell and not your program. To fix this in the shell, you can use GNU find and xargs:
  find . -type f -print0 |xargs -0 /your/script
It uses NULLs to terminate filenames instead of spaces.

Maybe not exactly what you want, but may help.

  • Comment on Re: filenames with spaces causing problems