We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 613387d commit 789e01bCopy full SHA for 789e01b
Remove Dates From Filenames.py
@@ -2,7 +2,7 @@
2
import re
3
4
# Replace 'your/directory/path' with the path to the directory you want to search
5
-directory_path = r'C:\BabelfishCompass\SQLCreateCrawler\ToDeploy'
+directory_path = r'C:\temp\\'
6
7
# Regex pattern to match '_YYYYMMDD' before the file extension
8
date_pattern = re.compile(r'(_\d{8})(\.\w+)$')
@@ -24,4 +24,4 @@
24
print(f'Would rename "{filename}" to "{new_filename}"')
25
26
# Uncomment the next line to actually perform the renaming after confirming the changes
27
- # os.rename(old_file_path, new_file_path)
+ # os.rename(old_file_path, new_file_path)
0 commit comments