Closed cleverguy25 closed 2 months ago
Right now the watch does behave reliably. Since we do not have a full metadata endpoint with the right permissions, this change:
In stat:
After we do a read, we set a proper size.
If we update the file we clear size so the next stat is random (cannot trust our file size). We also set the mtime to the current date.
We are also properly keeping track of watches and if the file changes any opens are also marked changed so they are refreshed automatically.
Right now the watch does behave reliably. Since we do not have a full metadata endpoint with the right permissions, this change:
In stat:
After we do a read, we set a proper size.
If we update the file we clear size so the next stat is random (cannot trust our file size). We also set the mtime to the current date.
We are also properly keeping track of watches and if the file changes any opens are also marked changed so they are refreshed automatically.