-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Description, Requirements, Issues, To-Do
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,22 @@ | ||
# python-extension-checker | ||
Python script that checks for incorrect file extensions | ||
|
||
<b>Description:</b> | ||
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. | ||
|
||
<b>Requires:</b> | ||
<ul> | ||
<li><a href="https://github.com/ahupp/python-magic">python-magic</a></li> | ||
</ul> | ||
|
||
<b>Known Issues:</b> | ||
<ul> | ||
<li>Will fail, if the filename gets too long for the operating system</li> | ||
</ul> | ||
|
||
<b>To Do:</b> | ||
<ol> | ||
<li>Fix the filename length issue</li> | ||
</ol> |