Gimpfz

gimp file explore


In [10]:
import os
from datetime import datetime
#import gimpfu
 
filePath = "/home/wcmckee/Desktop/adventure.xcf"
modifiedTime = os.path.getmtime(filePath)
 
print datetime.fromtimestamp(modifiedTime).strftime("%d%b%Y %H:%M:%S")


01Apr2015 05:48:07

In [10]:


In [11]:
os.chdir('/home/wcmckee/Desktop')

In [12]:
lisdesk = os.listdir('/home/wcmckee/Desktop/')

In [13]:
for xcfz in lisdesk:
    print xcfz
    modifiedTime = os.path.getmtime(filePath)
    print datetime.fromtimestamp(modifiedTime).strftime("%Y-%m-%d %H:%M:%S")


bird-color.png
2015-04-01 05:48:07
bird.png
2015-04-01 05:48:07
char2-line.png
2015-04-01 05:48:07
ava1.xcf
2015-04-01 05:48:07
bird-bw.png
2015-04-01 05:48:07
ava2-line.png
2015-04-01 05:48:07
Desktop
2015-04-01 05:48:07
adventure.xcf
2015-04-01 05:48:07
piblah.xcf
2015-04-01 05:48:07
ava1-line.png
2015-04-01 05:48:07
ava3-line.png
2015-04-01 05:48:07
bird.xcf
2015-04-01 05:48:07
char1-line.png
2015-04-01 05:48:07

In [ ]: