Cannot see my files on smb

After a recent update of Windows 10, i have had problems to see my directories on kodi and later on OSMC. First i had a lot of issues goving “invalid argument” or similar. Those problems were solved but now when i tried to open the directory of a shared folder of my pc with windows 10, OSMC shows only some files and folders inside the shared one. Sometimes it’s only one, sometimes a few, sometimes none. It changes in seconds: I enter a folder, there are some files in it, i go up in the directory and at the moment i click on the folder again and it’s empty.
The folder is shared to everyone,
Thank you and sorry about my english.