Skip to content

gsfordham/python-extension-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

python-extension-checker

Python script that checks for incorrect file extensions

Description: This script will check the current directory in the terminal for files with bad filename extensions. If it comes to such a file, it will adjust the extension and then try to rename it. If the file already exists, it will loop, repeatedly creating a new time string to append to the filename, until it is ok to save (under normal circumstances, this should only be done once).

During execution, it will ask if you wish to continue, update you every 50 files, and then print the total number of files renamed and the total size of the directory.

Why/Reasoning: Many file managers generate previews based on the file extension, so this should make sure the previews will work.

Requires:

Known Issues:

  • Will fail, if the filename gets too long for the operating system

To Do:

  1. Fix the filename length issue

About

Python script that checks for incorrect file extensions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages