Prevent adding same folder and file to workspace #775 #1588 #1217

This is a way to stop appearing bugs with duplicate folders and files in workspace.

I'm not doing anything with existing duplicates in workspace. So user would have to clear workspace and add back all the things.