Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def titleize(path):
- for filename in os.listdir(path):
- titleized = filename.title()
- if os.path.isdir(filename) or filename == titleized:
- continue
- else:
- return(titleized)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement