Python, add trailing slash to directory string, os independently

Posted by Horace Ho on Stack Overflow See other posts from Stack Overflow or by Horace Ho
Published on 2010-04-29T09:28:40Z Indexed on 2010/04/29 9:57 UTC
Read the original article Hit count: 263

How can I add a trailing slash (/ for *nix, \ for win32) to a directory string, if the tailing slash is not already there? Thanks!

© Stack Overflow or respective owner

Related posts about python

Related posts about string-manipulation