|
Posted by Ben Morrow on May 9, 2008, 11:10 pm
Please log in for more thread options
> These are illegal characters in a fat32 file system:
>
> / : ; * ? " < > |
Presumably / also, if the FS is to be readable on Win32 systems.
> So when I attempt to copy files which contain any of these characters to
> my USB thumb drive which is a fat32 file system, it fails. I don't want
> to format the thumb drive as anything else. Is there a script which will
> traverse directories and files and strip these characters? I've google'd
> groups and the web and can't seem to find anything!
This is pretty trivial using File::Find and File::Copy (since FAT32
doesn't have any useful attributes anyway, the fact File::Copy doesn't
preserve them doesn't matter here).
Ben
--
'Deserve [death]? I daresay he did. Many live that deserve death. And some die
that deserve life. Can you give it to them? Then do not be too eager to deal
out death in judgement. For even the very wise cannot see all ends.'
ben@morrow.me.uk
|