[Zope] Cleaning Filenames from Windows

Edward Pollard pollej at uleth.ca
Fri Sep 19 18:16:39 EDT 2003


On Friday, September 19, 2003, at 04:03 PM, Edward Pollard wrote:

> Can anyone give me a hand?

It's *always* right when you give up, when you ask people for a hand, 
that Google returns what you need. I think it's a "Make idiots look 
foolish" feature. They should turn that off.

For the sake of completeness:
filename[max(string.rfind(filename, '/'),string.rfind(filename, 
'\\'),string.rfind(filename, ':'),)+1:]


Apologies for crowding your inboxes.


---
Edward J. Pollard
University of Lethbridge
Web Development
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 593 bytes
Desc: not available
Url : http://lists.zope.org/pipermail/zope/attachments/20030919/1c1a449e/attachment.bin


More information about the Zope mailing list