Adding a char inside path string

Hitesh hitesh287 at gmail.com
Wed Aug 16 16:38:36 EDT 2006


anything after .exe should be truncated (or deleted).


Grant Edwards wrote:
> On 2006-08-16, Hitesh <hitesh287 at gmail.com> wrote:
>
> > That might work but what if I get (in future) a path name where
> > foldername (and in windows it is very common, someone might name a
> > folder something like "Screw You") with space?
>
> You must come up with a rigorous specification for what is and
> isn't allowed at the end of a path.
>
> Then delete the stuff that isn't allowed.
>
> --
> Grant Edwards                   grante             Yow!  Hello? Enema
>                                   at               Bondage? I'm calling
>                                visi.com            because I want to be happy,
>                                                    I guess...




More information about the Python-list mailing list