Skip to main content
Question

get tree of file and subfolder display in txt file_

  • Feb 2, 2024 10:24 AM UTC
  • 6 replies
  • 217 views

Hello everybody,

I try to get all folder, subfolder name and file mane, type in output file.

the output must display like a tree.

EX content of C:

C\

     B\B1\T.txt

      D\H.pdf

 

Output: file.txt

C

     B

          B1

                T.txt(txt)        

     D   

          H.pdf(pdf)

 

I thank you for your very valuable help.

6 replies

Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+7
  • Most Valuable Pathfinder
  • Feb 2, 2024 11:18 AM UTC

Hi @Olatidoye ,

 

Please find the below,

You can get the Folder and Subfolder names by select Include all sub folder option.

Once you have get subfolder path, (pass the path location into another loop) 

add Loop For Each file in Folder for the getting the filename

 

Note : Include the if condition for validate the file extensions

 

 
 

  • Author
  • Navigator | Tier 3
  • Feb 2, 2024 11:39 AM UTC

Thank for your reply . please can you show step by step in order to follow you 


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+7
  • Most Valuable Pathfinder
  • Feb 3, 2024 3:29 PM UTC

 


  • Author
  • Navigator | Tier 3
  • Feb 3, 2024 4:38 PM UTC

hello ,

when i run i get this error message

 


  • Author
  • Navigator | Tier 3
  • Feb 3, 2024 4:52 PM UTC

This is the code on AA360

 

 


Tamil Arasu10
Most Valuable Pathfinder
Forum|alt.badge.img+7
  • Most Valuable Pathfinder
  • Feb 5, 2024 10:19 AM UTC

have you selected the 1st loop, like a below