{"action":"created","issue":{"url":"https://api.github.com/repos/hwaxxer/MHWDirectoryWatcher/issues/7","labels_url":"https://api.github.com/repos/hwaxxer/MHWDirectoryWatcher/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/hwaxxer/MHWDirectoryWatcher/issues/7/comments","events_url":"https://api.github.com/repos/hwaxxer/MHWDirectoryWatcher/issues/7/events","html_url":"https://github.com/hwaxxer/MHWDirectoryWatcher/issues/7","id":126841945,"number":7,"title":"How to get file information change? ","user":{"login":"dominik0711","id":1011188,"avatar_url":"https://avatars.githubusercontent.com/u/1011188?v=3","gravatar_id":"","url":"https://api.github.com/users/dominik0711","html_url":"https://github.com/dominik0711","followers_url":"https://api.github.com/users/dominik0711/followers","following_url":"https://api.github.com/users/dominik0711/following{/other_user}","gists_url":"https://api.github.com/users/dominik0711/gists{/gist_id}","starred_url":"https://api.github.com/users/dominik0711/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominik0711/subscriptions","organizations_url":"https://api.github.com/users/dominik0711/orgs","repos_url":"https://api.github.com/users/dominik0711/repos","events_url":"https://api.github.com/users/dominik0711/events{/privacy}","received_events_url":"https://api.github.com/users/dominik0711/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T10:02:28Z","updated_at":"2016-02-02T09:17:55Z","closed_at":"2016-02-02T09:17:55Z","body":"I would like to be informed when a file was deleted, added or renamed by getting the file name and the action (delete, added, renamed). Is this possible with the current implementation of `MHWDirectoryWatcher`? Right now it seems only inform me about a change in a monitored directory without any specification about the kind (file deleted, file added, file renamed etc.) and without any further file information (like filePath etc.) \r\nDo you have any code samples how to implement the behaviour described above?\r\n\r\nThanks in advance!"},"comment":{"url":"https://api.github.com/repos/hwaxxer/MHWDirectoryWatcher/issues/comments/178467958","html_url":"https://github.com/hwaxxer/MHWDirectoryWatcher/issues/7#issuecomment-178467958","issue_url":"https://api.github.com/repos/hwaxxer/MHWDirectoryWatcher/issues/7","id":178467958,"user":{"login":"hwaxxer","id":104157,"avatar_url":"https://avatars.githubusercontent.com/u/104157?v=3","gravatar_id":"","url":"https://api.github.com/users/hwaxxer","html_url":"https://github.com/hwaxxer","followers_url":"https://api.github.com/users/hwaxxer/followers","following_url":"https://api.github.com/users/hwaxxer/following{/other_user}","gists_url":"https://api.github.com/users/hwaxxer/gists{/gist_id}","starred_url":"https://api.github.com/users/hwaxxer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwaxxer/subscriptions","organizations_url":"https://api.github.com/users/hwaxxer/orgs","repos_url":"https://api.github.com/users/hwaxxer/repos","events_url":"https://api.github.com/users/hwaxxer/events{/privacy}","received_events_url":"https://api.github.com/users/hwaxxer/received_events","type":"User","site_admin":false},"created_at":"2016-02-02T09:17:55Z","updated_at":"2016-02-02T09:17:55Z","body":"I'm afraid that kind of functionality is not provided. Like you said, it only informs you that something has changed in the directory that's being watched. Adding that functionality is up to you, but it should be fairly straightforward. You'd just need a data structure, possibly a dictionary with file names as keys and file attributes as values (see `NSFileManager`). Between successive callbacks you'd check where the dictionaries intersect and compute the diffs."}}