{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/10568","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10568/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10568/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10568/events","html_url":"https://github.com/joomla/joomla-cms/issues/10568","id":156089847,"number":10568,"title":"new plugin events related to JFile and JFolder","user":{"login":"stutteringp0et","id":310899,"avatar_url":"https://avatars.githubusercontent.com/u/310899?v=3","gravatar_id":"","url":"https://api.github.com/users/stutteringp0et","html_url":"https://github.com/stutteringp0et","followers_url":"https://api.github.com/users/stutteringp0et/followers","following_url":"https://api.github.com/users/stutteringp0et/following{/other_user}","gists_url":"https://api.github.com/users/stutteringp0et/gists{/gist_id}","starred_url":"https://api.github.com/users/stutteringp0et/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stutteringp0et/subscriptions","organizations_url":"https://api.github.com/users/stutteringp0et/orgs","repos_url":"https://api.github.com/users/stutteringp0et/repos","events_url":"https://api.github.com/users/stutteringp0et/events{/privacy}","received_events_url":"https://api.github.com/users/stutteringp0et/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-21T07:55:56Z","updated_at":"2016-05-30T19:22:25Z","closed_at":null,"body":"To bring better automation to multi-homed sites behind a load balancer - it would be beneficial if a plugin event could be triggered by:\r\n\r\nJFolder::copy/create/delete/move\r\nJFile::copy/delete/move/upload/write\r\n\r\nWith events attached to these actions, a plugin could be created to initiate a mirror operation to other servers.  Another possible use might be to scan articles for recently written image files for automatic resize.\r\n\r\nGood idea? Bad idea? Does something like this already exist?\r\n\r\nI realize this is a feature request - I'd be happy to write it"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/222543866","html_url":"https://github.com/joomla/joomla-cms/issues/10568#issuecomment-222543866","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/10568","id":222543866,"user":{"login":"Bakual","id":1018684,"avatar_url":"https://avatars.githubusercontent.com/u/1018684?v=3","gravatar_id":"","url":"https://api.github.com/users/Bakual","html_url":"https://github.com/Bakual","followers_url":"https://api.github.com/users/Bakual/followers","following_url":"https://api.github.com/users/Bakual/following{/other_user}","gists_url":"https://api.github.com/users/Bakual/gists{/gist_id}","starred_url":"https://api.github.com/users/Bakual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bakual/subscriptions","organizations_url":"https://api.github.com/users/Bakual/orgs","repos_url":"https://api.github.com/users/Bakual/repos","events_url":"https://api.github.com/users/Bakual/events{/privacy}","received_events_url":"https://api.github.com/users/Bakual/received_events","type":"User","site_admin":false},"created_at":"2016-05-30T19:22:25Z","updated_at":"2016-05-30T19:22:25Z","body":"> I'm not sure what purpose loading my own JFile/JFolder classes would serve if my goal is to have an event on all filesystem operations. I certainly can't rely on others to load my replacement classes.\r\n\r\nIf the class is autoloaded, then the extensions don't even have to know your class exists. You just register your own JFile/JFolder classes and they get used by every code that request these classes. That is what I meant.\r\n\r\n"}}
{"actor":{"display_login":"Bakual"}}