That include_mounted_folders documentation indicates that it controls whether or not to include entries under the mounted folders. So, the mounted folder (such as a shared folder) itself will still be listed, but the contents of that shared folder should not.
If that's not what you're seeing, feel free to share the code and output.