Re: [Tutor] Getting a directory listing with Python to MySQL

2014-07-25 Thread Steven D'Aprano
On Tue, Jul 22, 2014 at 06:32:43PM -0700, Eric Dannewitz wrote: > 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. Did you look at the functions in os.path as suggested? Here are the docs: https://docs

Re: [Tutor] Getting a directory listing with Python to MySQL

2014-07-23 Thread Danny Yoo
On Jul 22, 2014 11:10 PM, "Eric Dannewitz" wrote: > > 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. Steven mentioned a few functions in his reply; check those ones out. The 'os' module is a bit large, b

Re: [Tutor] Getting a directory listing with Python to MySQL

2014-07-22 Thread Eric Dannewitz
esday, 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, da

Re: [Tutor] Getting a directory listing with Python to MySQL

2014-07-22 Thread Steven D'Aprano
On Tue, Jul 22, 2014 at 04:10:02PM -0700, Eric Dannewitz wrote: > Hello list, I'm new. I've done a few things in Python, but this one is posing > problems. > > 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

Re: [Tutor] Getting a directory listing with Python to MySQL

2014-07-22 Thread Danny Yoo
> 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 __

[Tutor] Getting a directory listing with Python to MySQL

2014-07-22 Thread Eric Dannewitz
Hello list, I'm new. I've done a few things in Python, but this one is posing problems. 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, and send that to a