Skip to content

Commit 789e01b

Browse files
Update Remove Dates From Filenames.py
1 parent 613387d commit 789e01b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Remove Dates From Filenames.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import re
33

44
# Replace 'your/directory/path' with the path to the directory you want to search
5-
directory_path = r'C:\BabelfishCompass\SQLCreateCrawler\ToDeploy'
5+
directory_path = r'C:\temp\\'
66

77
# Regex pattern to match '_YYYYMMDD' before the file extension
88
date_pattern = re.compile(r'(_\d{8})(\.\w+)$')
@@ -24,4 +24,4 @@
2424
print(f'Would rename "{filename}" to "{new_filename}"')
2525

2626
# Uncomment the next line to actually perform the renaming after confirming the changes
27-
# os.rename(old_file_path, new_file_path)
27+
# os.rename(old_file_path, new_file_path)

0 commit comments

Comments
 (0)