import os
srcFile ='./actwork/linkFile/allExtLinks -コピー.txt'
dstFile ='./actwork/linkFile/allExtLinks - copy.txt'try:
os.rename(srcFile,dstFile)
except Exception as e:print(e)print('rename file fail\r\n')else:print('rename file success\r\n')
Recommended Posts