How to search for and display files in a bunchof subdirectory??

EdwardT edwardt at trillium.com
Mon Apr 16 19:41:13 EDT 2001


Hi I am trying to write gui that can search and display all the files in
subdirectories...

Let say I invoke the script in directory d, but I have abunch of
subdirectories under d.

tpTcCTFTEST10/ tpTcCTFTESTTIGHT02/ tpTcTNLC14_2/ tpTcTNLC6_5/

tpTcCTFTEST11/ tpTcCTFTESTTIGHT03/ tpTcTNLC15_1/ tpTcTNLC6_6/

tpTcCTFTEST12/ tpTcCTFTESTTIGHT04/ tpTcTNLC16_1/ tpTcTNLC6_7/

tpTcCTFTEST13/ tpTcCTFTESTTIGHT05/ tpTcTNLC16_2/ tpTcTNLC6_8/

tpTcCTFTEST14/ tpTcCTFTESTTIGHT06/ tpTcTNLC17_1/ tpTcTNLC7_1/

tpTcCTFTEST16/ tpTcCTFTESTTIGHT07/ tpTcTNLC1_1/ tpTcTNLC8_1/

tpTcCTFTEST17/ tpTcCTFTESTTIGHT08/ tpTcTNLC1_2/ tpTcTNLC8_2/

tpTcCTFTEST18/ tpTcCTFTESTTIGHT0811/ tpTcTNLC2_1/ tpTcTNLC8_3/

tpTcCTFTEST19/ tpTcCTFTESTTIGHT09/ tpTcTNLC2_2/ tpTcTNLC9_1/

tpTcCTFTEST7/ tpTcCTFTESTTIGHT12/ tpTcTNLC4_1/ tpTcTNLC9_2/

tpTcCTFTEST8/ tpTcTNLC10_2/ tpTcTNLC6_1/ tpTcTNLC9_3/

tpTcCTFTEST9/ tpTcTNLC11_1/ tpTcTNLC6_2/ tpTcTNLC9_4/

tpTcCTFTESTTIGHT01/ tpTcTNLC11_2/ tpTcTNLC6_3/

tpTcCTFTESTTIGHT010/ tpTcTNLC14_1/ tpTcTNLC6_4/



and each subdirectory contains a file tp_acc.1. I want to do some processing
to this file, but asking the user to click each folder and input the file
name is just too much work for them, how can I just display the files in the
subdirectories.

If the user want the same processing to be done on all of the files , he can
just click on the options to process it all. If they want to process part of
the sub directory, user also allowed to do so?

Thanks






More information about the Python-list mailing list