Hi all,
I created 2 lists. List a - Subfolders, b - files in format .txt
I want to compare the names of subfolders and names of files and is they are the same, do some actions.
To get a list "a" I running "Get Subfolders if folder" and the output is "c:/user/etc/etc/etc/etc/folder name"
e.g. C:/User/folder 1/folder 2/folder 3/testfolder
To get a list "b" I running "Get files in folder" and the output is "c:/user/etc2/etc2/etc2/etc2/file name.txt
e.g. C:/User/folder 1/folder 4/folder 5/folder 6/testfolder.txt
Then I will compare them via 2 "for each".
How I can get the exact folder name and file name without a path? (in this example name will be a "testfolder")
Because now it's comparing the whole path, where I need only names.