File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3434
3535use OC \Files \Cache \FailedCache ;
3636use OC \Files \Cache \NullWatcher ;
37+ use OC \Files \Cache \Watcher ;
3738use OC \Files \Filesystem ;
3839use OC \Files \Storage \FailedStorage ;
3940use OC \Files \Storage \Wrapper \PermissionsMask ;
4041use OC \User \NoUserException ;
42+ use OCA \Files_External \Config \ExternalMountPoint ;
4143use OCP \Constants ;
4244use OCP \Files \Cache \ICacheEntry ;
4345use OCP \Files \NotFoundException ;
@@ -405,7 +407,11 @@ public function getOwner($path): string {
405407 return $ this ->superShare ->getShareOwner ();
406408 }
407409
408- public function getWatcher ($ path = '' , $ storage = null ): NullWatcher {
410+ public function getWatcher ($ path = '' , $ storage = null ): Watcher {
411+ // If the share is originating from an external storage
412+ if ($ this ->getShare ()->getNode ()->getMountPoint () instanceof ExternalMountPoint) {
413+ return parent ::getWatcher ($ path , $ storage );
414+ }
409415 // cache updating is handled by the share source
410416 return new NullWatcher ();
411417 }
You can’t perform that action at this time.
0 commit comments