Created
August 28, 2018 23:37
-
-
Save NicholasTD07/d08d9128a311ce3c3fa392a222caccfc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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