title: Unique file name from list
body: <p>I have list with file paths (as string) from different directories; Im trying to remove duplicate file name (it can be even from different directory). Now I loop through whole list, make a dictionary to remove the duplicates. Is there any other efficient way?</p>