Try this

R

RunLevelZero

I'm not sure I understand your first question but checkout the " glob "
module. Sounds like it may help.

Here is how you could get the folders and filenames

import os

list = os.walk("C:\python24\Tools")
for file in list:
folderlist = os.path.split(file[0])
print "****************Folder***************"
print folderlist[1]
print "====================================="
print
print "****************Files*****************"
print file[2]
print "====================================="
 
M

Michael Hoffman

RunLevelZero said:
I'm not sure I understand your first question but checkout the " glob "
module. Sounds like it may help.

Who are you talking to? It would help if you quoted text from the
original message, left some of the original subject, and replied to the
original message instead of making a new post.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top