Some hooks do not seem to work

I am registering the following Hooks

Util::connectHook(‘OC_Filesystem’, ‘post_create’, ‘OCA\BoxLogging\Hooks\LoggingHooks’, ‘fileCreate’);
Util::connectHook(‘OC_Filesystem’, ‘post_update’, ‘OCA\BoxLogging\Hooks\LoggingHooks’, ‘fileUpdate’);
Util::connectHook(‘OC_Filesystem’, ‘delete’, ‘OCA\BoxLogging\Hooks\LoggingHooks’, ‘fileDelete’);
Util::connectHook(‘OC_Filesystem’, ‘post_rename’, ‘OCA\BoxLogging\Hooks\LoggingHooks’, ‘fileRename’);

however some do not seem to work properly. Specifically the ‘fileCreate’ and ‘fileUpdate’ work fine while the rest doesn’t fire when a Deletion or Renaming happens. The handling functions follow:

public static function fileCreate($path) {
self::actFile($path, ‘Upload’);
}
public static function fileRename($path) {
self::actFile($path, ‘Upload’);
}
public static function fileUpdate($path) {
self::actFile($path, ‘Update’);
}
public static function fileDelete($path) {
self::actFile($path, ‘Delete’);
}
actFile is the function handling all four events. As said before, it works fine for fileCreate and fileUpdate.

Thanks again!
K

Anybody has any insight on why some hooks, specifically delete, rename and read do not work or fire? I am looking at it for several days but cannot find a workaround… Would creating a LoggingHooks object and passing it in the connectHooks() function instead of “OCA\BoxLogging\Hooks\LoggingHooks” make any difference?

Any help would be highly appreciated!! :slight_smile:
Thanks a lot,
K