I feel that assigning files, and folders and doing the += [item] part is a bit hackish. Any suggestions? I\'m using Python 3.2
from os import * from os.pat
Take a look at the os.walk function which returns the path along with the directories and files it contains. That should considerably shorten your solution.