One way could be to get the "deepest" directories and run makedirs(),
which will create all directories in-between.
Cheers
Bernard
On 9/21/07, Stefan Andersson <sanders3d(at)gmail.com> wrote:
> Sorry guys, a little python question. I was wondering if anyone knows
> a way for parsing a text file to create folder structures.
>
> ex
> [root]
> |-- [ folder ]
> |-----[ folder ]
> |--[ folder ]
> |--[ folder ]
> |--[ folder ]
> |----[ folder ]
> |------[ folder ]
> |------[ folder ]
>
> regards
> stefan
>
>
> --
> __________________________________________
> Pixel Abuser (at) http://www.swiss.se/
> Blog (at) http://sanders3d.blogspot.com/
> Web (at) http://sanders3d.googlepages.com/
> work e.mail: stefan [at] swiss.se
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi