I prompt the user for a
Source Directory --> d:\test
and a
Target Directory --> d:\test 2
Then it returns all the folders in those two paths which I then remove the source and target folders from the paths:
(("\\test a" "\\test a\\test a1" "\\test a\\test a2" "\\test a\\test a3" "\\test c" "\\test c\\test c1")
("\\test a" "\\test a\\test a1" "\\test a\\test a2" "\\test b" "\\test b\\test b1" "\\test b\\test b2")
)
Then I will pass this list to another function to return only similar paths:
(defun Return_Same_Items (lst1 lst2)
(vl-remove-if-not '(lambda (x) (member x lst2)) lst1)
)
This function however accepts two lists instead of one list. I would rather not change this function because I use in other programs.
My delimma is how to get this
(("\\test a" "\\test a\\test a1" "\\test a\\test a2" "\\test a\\test a3" "\\test c" "\\test c\\test c1")
("\\test a" "\\test a\\test a1" "\\test a\\test a2" "\\test b" "\\test b\\test b1" "\\test b\\test b2")
)
into this
("\\test a" "\\test a\\test a1" "\\test a\\test a2" "\\test a\\test a3" "\\test c" "\\test c\\test c1")
("\\test a" "\\test a\\test a1" "\\test a\\test a2" "\\test b" "\\test b\\test b1" "\\test b\\test b2")
Comprende?