Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- downloadPath = r'C:\Users\rgraham_adm\Desktop\RedditScript\Forms\'
- files = os.listdir(downloadPath)
- for index, item in enumerate(files):
- os.rename(f'{downloadPath}{item}', f'{downloadPath}{str(index)}.pdf')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement