12345678910111213 |
- # %%
- basedir = '/home/kora/Desktop/OVI_Data_Local/OVIaspo/DallOVI/datiniXML/'
- # %%
- import os
- # %%
- files = os.listdir(basedir)
- # %%
- for file in files:
- if(file.startswith('xmlgat')):
- print(file)
- print(file.replace('.txt', '.xml'))
- os.rename(basedir + file, basedir + file.replace('.txt', '.xml'))
- # %%
|