View Single Post
Old Jan 24th, 2006, 4:12 PM   #11
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
Originally Posted by Arevos
Or use "os.path.basename". That should make things safe enough.
Yeah, os.path.basename is cool. Won't work, however, if you want to make use of subdirectories. Things need to stay flat if you use it.
Cerulean is offline   Reply With Quote