1
0
mirror of https://github.com/minoplhy/filters-maker.git synced 2025-02-23 16:54:52 +00:00
filters-maker/build_make.py

13 lines
427 B
Python
Raw Normal View History

2021-08-20 23:41:05 -07:00
import os
import glob
import shutil
def filepath_mass_changer(Version ,path ,apapath):
f = glob.glob(os.path.join(path,"*.txt"))
for filename in f:
s = os.path.basename(filename)
os.rename(filename, os.path.join(path, Version + '_' + s ))
2021-08-21 23:43:24 +07:00
f = glob.glob(os.path.join(path,"*.txt"))
for filename in f:
s = os.path.basename(filename)
shutil.copy2(os.path.join(path,s), apapath)