I’d expect that technique to fail when the file is read-only. In that case, periodically checking file size for changes is the only (mostly) reliable way.
*mostly because this technique will also fail if the network connection is stalled, which is quite rare and unlikely on a local network.