Batch File Rename with Python

前端 未结 1 1386
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 06:58

Below is my code to batch rename pictures inside a given directory

def multi_filename_change():
i = 0
files = askstring(\'Select your folder\', \'Paste your dire         


        
相关标签:
1条回答
  • 2021-01-29 07:39

    Source should be appended with existing directory, not just filename

    src =files+file

    Or
    src=os.path.join(files, file)

    0 讨论(0)
提交回复
热议问题