"ingo" <ingoo...@gmail.com> wrote

I have a path

path = 'Audio/site-packages/pygame/examples/macosx/aliens_app_example/English.lproj'

I'd like to turn taht into a list with a certain structure and order:

Its not clear what exactly the sort criteria is, however have you looked at the os.walk() function for traversing directory trees? It may be all
you need.

--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to