Keep the library in sync with the following folders

I am not quite sure how the function “keep the library in sync with the following folders” works. I do notice that each time I open the application there are additional audio files written to the library resulting in a lot of double audio files, I mean 2 or 3 audio files with the same name and content. What is the correct way to use this function?