PDA

View Full Version : Treatment of special chars in filenames


chrroe
09-May-2008, 08:26 AM
Hi!

In my Linux installation there are some files whose names contain characters which are not allowed in a MS Windows environment.
For example: /etc/zypp/repos.d/KDE:KDE4:STABLE:Desktop.repo

When I try to copy such a file via SFTP to my windows machine it fails (of course):
09.05.2008 15:03:18 Unable to copy KDE:KDE4:STABLE:Desktop.repo: Cannot create file "d:\Temp\etc\zypp\repos.d\KDE:KDE4:STABLE:Desktop.r epo". Der Vorgang wurde erfolgreich beendet
09.05.2008 15:03:18 Failed to copy 1 items. Completed in 0,20 seconds.

And once more WinSCP is the more experienced software which offers a transfer option to replace such characters with a coded value like this: KDE%3AKDE4%3ASTABLE%3ADesktop.repo
(see screenshot)

BC3 should offer such a conversion too, but only when the file creation process has actually failed. So it would still be possible to do Linux <--> Linux transfers.

Bye
Christoph

Craig
21-May-2008, 04:34 PM
Are you suggesting that BC should try to line them up after the fact as well, or just rename and copy them?