{"action":"created","issue":{"url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/23","labels_url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/23/comments","events_url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/23/events","html_url":"https://github.com/syncthing/syncthing-inotify/issues/23","id":59891147,"number":23,"title":"Folders containing folders get locked on Windows","user":{"login":"alexbeer2048","id":7649886,"avatar_url":"https://avatars.githubusercontent.com/u/7649886?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbeer2048","html_url":"https://github.com/alexbeer2048","followers_url":"https://api.github.com/users/alexbeer2048/followers","following_url":"https://api.github.com/users/alexbeer2048/following{/other_user}","gists_url":"https://api.github.com/users/alexbeer2048/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbeer2048/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbeer2048/subscriptions","organizations_url":"https://api.github.com/users/alexbeer2048/orgs","repos_url":"https://api.github.com/users/alexbeer2048/repos","events_url":"https://api.github.com/users/alexbeer2048/events{/privacy}","received_events_url":"https://api.github.com/users/alexbeer2048/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/syncthing/syncthing-inotify/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-05T01:32:24Z","updated_at":"2015-03-05T13:39:00Z","closed_at":null,"body":"For Windows the SyncWatcher seems to lock the parent folder, which means you cannot edit/move/delete the parent folder, if the folder hierarchy is deeper then 1.\r\n\r\nE.g.\r\n\r\n```text\r\n--FolderA\r\n    --FolderB\r\n        --SomeFile1.txt\r\n```\r\n\r\nIn this example editing/renaming SomeFile1.txt and FolderB works fine, but FolderA can not be renamed, moved or deleted.\r\nWindows complains that the folder or a file in it is being edited by another program and it should be closed before.\r\n\r\nLanguage on my system is german so a can not give you the exact english error message.\r\n\r\nOS: Windows 8.1\r\nGo: version 1.4.2\r\nCompiled syncthing and syncthing-inotify from the latest source. \r\n\r\nI just learned about the Syncthing project and I'm also new to Go programming language, so forgive me if I missed out on some basic things.\r\n\r\nI hope someone with better knowledge can write a test for this scenario. Maybe it's only related to Windows, maybe it's also applies to linux and iOS."},"comment":{"url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/comments/77364569","html_url":"https://github.com/syncthing/syncthing-inotify/issues/23#issuecomment-77364569","issue_url":"https://api.github.com/repos/syncthing/syncthing-inotify/issues/23","id":77364569,"user":{"login":"alexbeer2048","id":7649886,"avatar_url":"https://avatars.githubusercontent.com/u/7649886?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbeer2048","html_url":"https://github.com/alexbeer2048","followers_url":"https://api.github.com/users/alexbeer2048/followers","following_url":"https://api.github.com/users/alexbeer2048/following{/other_user}","gists_url":"https://api.github.com/users/alexbeer2048/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbeer2048/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbeer2048/subscriptions","organizations_url":"https://api.github.com/users/alexbeer2048/orgs","repos_url":"https://api.github.com/users/alexbeer2048/repos","events_url":"https://api.github.com/users/alexbeer2048/events{/privacy}","received_events_url":"https://api.github.com/users/alexbeer2048/received_events","type":"User","site_admin":false},"created_at":"2015-03-05T13:39:00Z","updated_at":"2015-03-05T13:39:00Z","body":"Might be. Sorry I missed that one.\r\nIn my test I only had the problem with folders though.\r\n\r\n```text\r\n--FolderA\r\n    --SomeFile1.txt\r\n    --FolderB\r\n        --SomeFile2.txt\r\n--SomeFile3.txt\r\n```\r\nEditing all these files works fine, only FolderA can not be changed, unless FolderB is removed or moved somewhere else before.\r\n\r\nFor example, if I want to delete FolderA, I would have to delete FolderB first and then FolderA."}}