Favorite shortcuts to a web page

Ryan Phillips ryan.phillips at csus.edu
Fri Jan 25 17:50:39 EST 2002


Have you tried something like the following code; I think it will work for
you:

#!/usr/bin/python

import os

def walkit(arg, subdir, names):

   print subdir
   print  names

""" Main program """

dummy = []
os.path.walk(os.getcwd(), walkit, dummy)

-Ryan

"DStone" <dddstone at hotmail.com> wrote in message
news:adc8d558.0201251302.55d37d4d at posting.google.com...
> I am trying to compose a script in Python that will read the shortcuts
> in my IE Favorites folder and compile them in an HTML page, each
> folder's shortcuts being nested beneath the layer above.
>
> I have been unable to elucidate how to make my script drill down into
> multiple subfolders and properly form a web page.  I can produce an
> indented list of folders and their subsequent subfolders, OR I can
> make a nice HTML page with one folder's worth of favorites outputted
> in list style, BUT I cannot seem to get both done.
>
> Anyone have such a script or can help?
>
> Thanks
> -D





More information about the Python-list mailing list