Python Scripts: Difference between revisions
Content added Content deleted
Line 680: | Line 680: | ||
= Extensions Doctor = |
= Extensions Doctor = |
||
Source: [https://askubuntu.com/questions/631900/correct-file-extensions askubuntu.com] |
Source: [https://askubuntu.com/questions/631900/correct-file-extensions askubuntu.com] |
||
{{notice|Need to prevent overwrite of existing files using [https://stackoverflow.com/questions/31813504/move-and-replace-if-same-file-name-already-existed-in-python stackoverflow.com].}} |
|||
<syntaxhighlight lang="python"> |
<syntaxhighlight lang="python"> |
||
Line 693: | Line 691: | ||
# Verify: jpg = jpeg ignore |
# Verify: jpg = jpeg ignore |
||
# Append _(1) if existing file |
# Append _(1) if existing file |
||
# write list of files before and after operation |
|||
# write modified files to list |
# write modified files to list |
||
# |
# Duplicate remover |
||
# : replace _ |
# : replace _ |
||