fileprovider cannot update files opened by other applications

Hello, everyone. I am using fileprovder to update the file on the server to the local, but when my local file is opened by another application (such as misrosoft word), fileprovder will notify the file has been updated on the server through enumerateChangesForObserver, and then fileprovider will get the file's latest content from the server. But after getting the file, the icon of the file has always been a cloud icon, and has not become a materialized state. Is there any way to catch this error or recover from this state?

Thanks!

Hello, after I update the office application, the state of the file can be set normally, so I guess it may be a problem caused by the office version. Now there is another problem. When the office file is opened, a temporary file staring with "~$" will be generated, but createItemBasedOnTemplate will not trigger the corresponding event. Is it just the default behavior of fileprovider? Is there an option to trigger that event? Thanks.

fileprovider cannot update files opened by other applications
 
 
Q