{"action":"opened","issue":{"url":"https://api.github.com/repos/rastersize/CDEvents/issues/32","labels_url":"https://api.github.com/repos/rastersize/CDEvents/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/rastersize/CDEvents/issues/32/comments","events_url":"https://api.github.com/repos/rastersize/CDEvents/issues/32/events","html_url":"https://github.com/rastersize/CDEvents/issues/32","id":124236877,"number":32,"title":"Proper file event flags for create, removed and renamed???","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":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-29T16:46:19Z","updated_at":"2015-12-29T16:46:19Z","closed_at":null,"body":"@rastersize  Hi. As @Bhushan30 already mentioned. CDEvent always returns isRenamed regardless of the action that a file was dropped to the watched folder. When I drop a file to the observed folder isCreated is always NO but isRenamed is always YES!\r\nWhat's your suggestion to filter file changes like:\r\n\r\n- created file to watched folder\r\n- removed file from watched folder\r\n- renamed file in watched folder\r\n\r\nHow to suppress notification on changes in **.DS_Store**?\r\n\r\nThis is what I have so far:\r\n\r\n```\r\n    _events = [[CDEvents alloc] initWithURLs:watchedURLs\r\n                                       block:^(CDEvents *watcher, CDEvent *event) {\r\n                                         NSString *file = event.URL.path;\r\n                                         const std::string fileName([file UTF8String]);\r\n                                         au::arcwork::Handler* handler = au::arcwork::Handler::GetInstance();\r\n                                         if (event.isCreated) { // ALWAYS NO!!!\r\n                                           handler->OnFileNotify(fileName, au::arcwork::DIR_CHANGE_TYPE::ADDED);\r\n                                         }\r\n                                         if (event.isRemoved) { // ALWAYS NO!!!\r\n                                           handler->OnFileNotify(fileName, au::arcwork::DIR_CHANGE_TYPE::DELETED);\r\n                                         }\r\n                                         if (event.isRenamed) { // ALWAYS YES!!!\r\n                                           ...\r\n                                         }\r\n                                       }\r\n                                   onRunLoop:[NSRunLoop currentRunLoop]\r\n                        sinceEventIdentifier:kCDEventsSinceEventNow\r\n                        notificationLantency:CD_EVENTS_DEFAULT_NOTIFICATION_LATENCY\r\n                     ignoreEventsFromSubDirs:CD_EVENTS_DEFAULT_IGNORE_EVENT_FROM_SUB_DIRS\r\n                                 excludeURLs:nil\r\n                         streamCreationFlags:creationFlags];\r\n```"}}