Flash maintaining library structure

I’m having trouble understanding how Flash recognises the file structure of the library if copying and pasting from different flas.

Sometimes it asks to replace items in the library and other times it doesn’t. And when you do ask it to replace items in the library, it will paste the copied file structure from the original into the location in your current library.

If both libraries have the same folder structure, why does Flash copy over and nest the folders?