Skip to content

Instantly share code, notes, and snippets.

@NicholasTD07
Created August 28, 2018 23:37
Show Gist options
  • Save NicholasTD07/d08d9128a311ce3c3fa392a222caccfc to your computer and use it in GitHub Desktop.
Save NicholasTD07/d08d9128a311ce3c3fa392a222caccfc to your computer and use it in GitHub Desktop.
from os import listdir
from os.path import isfile, join
import time
import os.path
mypath = "/Volumes/VOLUME1/DCIM/100MEDIA/"
onlyfiles = [join(mypath, f) for f in listdir(mypath)]
onlyfiles = [f for f in onlyfiles if isfile(f)]
print(onlyfiles)
for file in onlyfiles:
print("created: %s" % time.ctime(os.path.getctime(file)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment