Hello
How can I get the names of all folders and subfolders?
I tried
Directory.GetDirectories(all_folder_path)
- But finds only one folder
Directory.GetDirectories(all_folder_path , "" , SearchOption.AllDirectories)
and if so does not find anything
I am hope for your help
Thank’s
2 Likes
@Aibek_Abubakirov Have you tried the Expression in this way :
Directory.GetDirectories(all_folder_path,“*.*”,SearchOption.AllDirectories)
This worked for me
4 Likes
tried, finds only one folder, but does not find subfolders
@Aibek_Abubakirov Strange , Worked for me quite well
1 Like
Can you show the XAML file?
@Aibek_Abubakirov It is just the Expression in an Assign Statement, and I’m using For Each to iterate over the List of Files retrieved by the Expression. Even if I provide the xaml, I don’ think it will be of use
How can I get the names of all folders and subfolders?
@Aibek_Abubakirov Check this workflow :
GetFoldersAndSubFolders.xaml (5.8 KB)
Provide your Path name in the Expression and Check if it gives the Output.
7 Likes
I checked,
the problem was in the path of the folder, I was in the network folder
thanks a lot
2 Likes
system
(system)
Closed
April 12, 2020, 9:51am
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.