@@ -0,0 +1,681 @@
+%22%22%22%0AName             : Simple Spruce Filenames%0ACreated By       : Agus Makmun (Summon Agus)%0ABlog             : bloggersmart.net - python.web.id%0ALicense          : GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007%0ADocumentation    : https://github.com/agusmakmun/Some-Examples-of-Simple-Python-Script/%0APowered          : Ubuntu 14.04, Python-2.7%0A%22%22%22%0A%0Aimport os, string%0Amy_path = r'mypath/'%0A%0Anumber = 0%0Aos.chdir(my_path)%0Afor element in os.listdir('.'):%0A    name_all = element %5B0:%5D%0A    number += 1%0A    string_number = str(number)%0A    if element in name_all:%0A        #print True, element%0A        os.rename(element, string_number+%22. Name of filenames.jpg%22)%0A%0Aprint os.path.abspath('.')%0A

Create Spruce.py