def path_leaf(path):
"""
Get just the filename from the full path.
http://stackoverflow.com/questions/8384737/extract-file-name-from-path-no-matter-what-the-os-path-format
"""
head, tail = ntpath.split(path)
return tail or ntpath.basename(head)
评论列表
文章目录