Modifying the code is not recommended for maintainability. You can write a basic filesystem app for your purpose. Check this similar discussion: Listen to \OC\Filesystem's read signal via Util::connectHook
1 Like