[owncloud-devel] PreWrite Hook

Daniel Araujo Melo daniel.melo at serpro.gov.br
Thu May 21 15:33:22 GMT 2015

Hi all,

I need to attach a code in preWrite or postWrite hook. It's ok using the former method:


However, i'd like to call method "listen" from an Emitter. The new and preferred way to attach a code to a hook.

According the documentation, the file root node can be injected from ServerContainer by calling the method getRootFolder(), getUserFolder() or getAppFolder().

These methods return OCP\Files\Folder, but the listen method is found in  OC\Files\Node\Root

What public interface i have to use in order to call method Listen?


Daniel A. Melo
MSc in Computer Science
CISSP - Certified Information Systems Security Professional
SERPRO - Serviço Federal de Processamento de Dados

daniel.melo at serpro.gov.br

55 81 2126 4220


"Esta mensagem do SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO), empresa pública federal regida pelo disposto na Lei Federal nº 5.615, é enviada exclusivamente a seu destinatário e pode conter informações confidenciais, protegidas por sigilo profissional. Sua utilização desautorizada é ilegal e sujeita o infrator às penas da lei. Se você a recebeu indevidamente, queira, por gentileza, reenviá-la ao emitente, esclarecendo o equívoco."

"This message from SERVIÇO FEDERAL DE PROCESSAMENTO DE DADOS (SERPRO) -- a government company established under Brazilian law (5.615/70) -- is directed exclusively to its addressee and may contain confidential data, protected under professional secrecy rules. Its unauthorized use is illegal and may subject the transgressor to the law's penalties. If you're not the addressee, please send it back, elucidating the failure."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20150521/222c40fb/attachment.html>

More information about the Devel mailing list