Currently, ftpfs is broken with respect to files with spaces in their
filename. We assume all files will be sent as a single string, while
this is not the case. My fix is a kind of nasty hack, but I couldn't
think of a better way that didn't require a lot more restructuring
than I was willing to do. Anyway, example of the problem:
ls /n/ftp/mp3/mp3
:
/n/ftp/mp3/mp3/Borsato
:
The expected output from ls is:
'/n/ftp/mp3/mp3/Marco Borsato'
With this patch, any filenames with spaces in them are fixed for
correct output:
'/n/ftp/mp3/mp3/thievery corporation - sounds from the thievery hi-fi/04. transcendence.mp3'
for example.
I reorganized the case handling as well, but that's more of a style
thing. If you have other suggestions for changes that would make this
more suitable for incorporating as a patch, I'd love to hear them!
|