Я хочу перечислить каждый файл и каталог, содержащиеся в каталоге и подкаталогах этого каталога. Если я выбрал C:\в качестве каталога, программа получит каждое имя каждого файла и папки на жестком диске, к которому у него был доступ.
Список может выглядеть как
fd\1.txt fd\2.txt fd\a\ fd\b\ fd\a\1.txt fd\a\2.txt fd\a\a\ fd\a\b\ fd\b\1.txt fd\b\2.txt fd\b\a fd\b\b fd\a\a\1.txt fd\a\a\a\ fd\a\b\1.txt fd\a\b\a fd\b\a\1.txt fd\b\a\a\ fd\b\b\1.txt fd\b\b\a