[Zope] Cleaning Filenames from Windows
Giuseppe Bonelli
giuseppe.bonelli at tiscali.it
Thu Oct 2 04:14:00 EDT 2003
> -----Original Message-----
> From: zope-bounces at zope.org [mailto:zope-bounces at zope.org]On Behalf Of
> J. Cameron Cooper
> Sent: martedì 30 settembre 2003 3.52
> To: Edward Pollard; zope at zope.org
> Subject: Re: [Zope] Cleaning Filenames from Windows
>
Maybe this is not a catch-all solution, but it works for me.
target_fname=target_fname[max(string.rfind(target_fname,'/'),
string.rfind(target_fname,'\\'),
string.rfind(target_fname,':')
)+1:]
hope this helps,
__peppo
More information about the Zope
mailing list