encode short string as filename (unix/windows)

Grant Edwards grante at visi.com
Mon Mar 27 11:04:25 EST 2006


On 2006-03-27, robert <no-spam at no-spam-no-spam.com> wrote:
> want to encode/decode an arbitrary short 8-bit string as save filename. 
> is there a good already builtin encoding to do this (without too much 
> inflation) ? or re.sub expression?
>
> or which characters are not allowed in filenames on typical OS?

Under unix, "/" and NULL aer not allowed.

There are other characters that are not recommended, but those
are the only two that are not allowed.

-- 
Grant Edwards                   grante             Yow!  .. the MYSTERIANS are
                                  at               in here with my CORDUROY
                               visi.com            SOAP DISH!!



More information about the Python-list mailing list