How to Capture all inserted files with name and path

I'll need execute a function when a new file is synchronize with the server. I'll need the name and path of this files.

How is the best way to do this?

Hello, two ways : with API ( i hope...) or with trigger in your database. For the second way, a table collect all insertion of files . And you can obtain a sql dump of this table all day for example .

Would you fully describe your purpose? Where will the function work? If it is in an ownCloud app, you can listen file write hooks and events.