Created
May 17, 2019 08:24
-
-
Save DataSolveProblems/cae37eb6b7b8e734f3994321fe17b1fa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| import os | |
| folderPath = r'<Your Folder Path>' | |
| fileNumber = 1 # file sequence number | |
| for filename in os.listdir(folderPath): | |
| os.rename(filename, 'Your file name' + str(fileNumber)) | |
| fileNumber +=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment