[Tutor] Getting a directory listing with Python to MySQL
Eric Dannewitz
edannewitz at rdschool.org
Wed Jul 23 03:32:43 CEST 2014
That's close. I have been playing from glob and os.walk but I'm at a loss how to get the size, creation and modified date while running it.
----- Original Message -----
From: "Danny Yoo" <dyoo at hashcollision.org>
To: "Eric Dannewitz" <edannewitz at rdschool.org>
Cc: "Python Tutor Mailing List" <tutor at python.org>
Sent: Tuesday, July 22, 2014 6:14:55 PM
Subject: Re: [Tutor] Getting a directory listing with Python to MySQL
> What I want to do is be able to parse a directory, say /Volumes/Stuff/Files/, and all the directories that might be in there, and be able to pick out file name, size, date modified, etc,
Hi Eric,
You might find the following helpful: http://www.diveintopython.net/file_handling/os_module.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140722/cbaaa832/attachment-0001.html>
More information about the Tutor
mailing list