I have files in directory in following order :
COL_1001.png
COL_1002.png
the next time I save a file i want it to be saved as
COL_1003.png
How can I do this using python program as I am using shutil as given in the example
allfiles = os.listdir(src)
c = 1001
for f in allfiles:
if f in files and len(selected_prop)>0:
s = f
s = f.split('.')
s[0] = projCode + '_' + selected_prop[0] + '_COL.' + str(c)
k = '.'.join(s)
shutil.copy( src + '\\' + f, os.path.join(dst,k))
c += 1
Thanks
Kartikey