Is there a better way of listing Windows shares other than using "os.listdir"

Doran_Dermot at emc.com Doran_Dermot at emc.com
Thu Dec 30 05:18:59 EST 2004


Hi All,

I'm currently using "os.listdir" to obtain the contents of some slow Windows
shares.  I think I've seen another way of doing this using the win32 library
but I can't find the example anymore.

My main problem with using "os.listdir" is that it hangs my gui application.
The tread running the "os.listdir" appears to block all other threads when
it calls this function.

Any ideas, comments or suggestions?

Thanks in advance,

Dermot.




More information about the Python-list mailing list