{"action":"created","comment":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/comments/72895203","id":72895203,"diff_hunk":"@@ -345,3 +359,21 @@ def sync_dir(path):\n     # TODO\n     pass\n \n+def get_ads(path):\n+    ret = []\n+    cdef _WIN32_FIND_STREAM_DATA data\n+    cdef wchar_t* cstrPath = PyUnicode_AsWideCharString(path, NULL)\n+    cdef HANDLE searchHandle = FindFirstStreamW(cstrPath, FindStreamInfoStandard, <void*>&data, 0)\n+    if searchHandle == <HANDLE>INVALID_HANDLE_VALUE:\n+        PyMem_Free(cstrPath)\n+        return []\n+    ret.append(PyUnicode_FromWideChar(data.cStreamName, -1))\n+    while FindNextStreamW(searchHandle, <void*>&data) != 0:\n+        ret.append(PyUnicode_FromWideChar(data.cStreamName, -1))\n+    errno = GetLastError()\n+    if errno != 38:","path":"src/borg/platform/windows.pyx","position":66,"original_position":66,"commit_id":"97f07657ee37b48b03aa3fb4ca2647c85395d264","original_commit_id":"97f07657ee37b48b03aa3fb4ca2647c85395d264","user":{"login":"enkore","id":1330164,"avatar_url":"https://avatars.githubusercontent.com/u/1330164?v=3","gravatar_id":"","url":"https://api.github.com/users/enkore","html_url":"https://github.com/enkore","followers_url":"https://api.github.com/users/enkore/followers","following_url":"https://api.github.com/users/enkore/following{/other_user}","gists_url":"https://api.github.com/users/enkore/gists{/gist_id}","starred_url":"https://api.github.com/users/enkore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enkore/subscriptions","organizations_url":"https://api.github.com/users/enkore/orgs","repos_url":"https://api.github.com/users/enkore/repos","events_url":"https://api.github.com/users/enkore/events{/privacy}","received_events_url":"https://api.github.com/users/enkore/received_events","type":"User","site_admin":false},"body":" ERROR_HANDLE_EOF","created_at":"2016-07-30T22:40:20Z","updated_at":"2016-07-30T22:40:20Z","html_url":"https://github.com/borgbackup/borg/pull/1411#discussion_r72895203","pull_request_url":"https://api.github.com/repos/borgbackup/borg/pulls/1411","_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments/72895203"},"html":{"href":"https://github.com/borgbackup/borg/pull/1411#discussion_r72895203"},"pull_request":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1411"}}},"pull_request":{"url":"https://api.github.com/repos/borgbackup/borg/pulls/1411","id":79465966,"html_url":"https://github.com/borgbackup/borg/pull/1411","diff_url":"https://github.com/borgbackup/borg/pull/1411.diff","patch_url":"https://github.com/borgbackup/borg/pull/1411.patch","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/1411","number":1411,"state":"open","locked":false,"title":"Windows: alternate data steams","user":{"login":"Anakonda","id":156346,"avatar_url":"https://avatars.githubusercontent.com/u/156346?v=3","gravatar_id":"","url":"https://api.github.com/users/Anakonda","html_url":"https://github.com/Anakonda","followers_url":"https://api.github.com/users/Anakonda/followers","following_url":"https://api.github.com/users/Anakonda/following{/other_user}","gists_url":"https://api.github.com/users/Anakonda/gists{/gist_id}","starred_url":"https://api.github.com/users/Anakonda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anakonda/subscriptions","organizations_url":"https://api.github.com/users/Anakonda/orgs","repos_url":"https://api.github.com/users/Anakonda/repos","events_url":"https://api.github.com/users/Anakonda/events{/privacy}","received_events_url":"https://api.github.com/users/Anakonda/received_events","type":"User","site_admin":false},"body":"Backup and extract Windows alternate data steams (#1342 #983 )\r\nADS are saved as separate items and extracted as such on non-windows.\r\n","created_at":"2016-07-30T19:35:32Z","updated_at":"2016-07-30T22:40:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"27f2611428edfcb892df2066063106403d09e7a9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/borgbackup/borg/pulls/1411/commits","review_comments_url":"https://api.github.com/repos/borgbackup/borg/pulls/1411/comments","review_comment_url":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/1411/comments","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/97f07657ee37b48b03aa3fb4ca2647c85395d264","head":{"label":"Anakonda:windows_ads","ref":"windows_ads","sha":"97f07657ee37b48b03aa3fb4ca2647c85395d264","user":{"login":"Anakonda","id":156346,"avatar_url":"https://avatars.githubusercontent.com/u/156346?v=3","gravatar_id":"","url":"https://api.github.com/users/Anakonda","html_url":"https://github.com/Anakonda","followers_url":"https://api.github.com/users/Anakonda/followers","following_url":"https://api.github.com/users/Anakonda/following{/other_user}","gists_url":"https://api.github.com/users/Anakonda/gists{/gist_id}","starred_url":"https://api.github.com/users/Anakonda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anakonda/subscriptions","organizations_url":"https://api.github.com/users/Anakonda/orgs","repos_url":"https://api.github.com/users/Anakonda/repos","events_url":"https://api.github.com/users/Anakonda/events{/privacy}","received_events_url":"https://api.github.com/users/Anakonda/received_events","type":"User","site_admin":false},"repo":{"id":56467175,"name":"borg","full_name":"Anakonda/borg","owner":{"login":"Anakonda","id":156346,"avatar_url":"https://avatars.githubusercontent.com/u/156346?v=3","gravatar_id":"","url":"https://api.github.com/users/Anakonda","html_url":"https://github.com/Anakonda","followers_url":"https://api.github.com/users/Anakonda/followers","following_url":"https://api.github.com/users/Anakonda/following{/other_user}","gists_url":"https://api.github.com/users/Anakonda/gists{/gist_id}","starred_url":"https://api.github.com/users/Anakonda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Anakonda/subscriptions","organizations_url":"https://api.github.com/users/Anakonda/orgs","repos_url":"https://api.github.com/users/Anakonda/repos","events_url":"https://api.github.com/users/Anakonda/events{/privacy}","received_events_url":"https://api.github.com/users/Anakonda/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Anakonda/borg","description":"Deduplicating backup program with compression and authenticated encryption.","fork":true,"url":"https://api.github.com/repos/Anakonda/borg","forks_url":"https://api.github.com/repos/Anakonda/borg/forks","keys_url":"https://api.github.com/repos/Anakonda/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Anakonda/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Anakonda/borg/teams","hooks_url":"https://api.github.com/repos/Anakonda/borg/hooks","issue_events_url":"https://api.github.com/repos/Anakonda/borg/issues/events{/number}","events_url":"https://api.github.com/repos/Anakonda/borg/events","assignees_url":"https://api.github.com/repos/Anakonda/borg/assignees{/user}","branches_url":"https://api.github.com/repos/Anakonda/borg/branches{/branch}","tags_url":"https://api.github.com/repos/Anakonda/borg/tags","blobs_url":"https://api.github.com/repos/Anakonda/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Anakonda/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Anakonda/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/Anakonda/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Anakonda/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/Anakonda/borg/languages","stargazers_url":"https://api.github.com/repos/Anakonda/borg/stargazers","contributors_url":"https://api.github.com/repos/Anakonda/borg/contributors","subscribers_url":"https://api.github.com/repos/Anakonda/borg/subscribers","subscription_url":"https://api.github.com/repos/Anakonda/borg/subscription","commits_url":"https://api.github.com/repos/Anakonda/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/Anakonda/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/Anakonda/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/Anakonda/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/Anakonda/borg/contents/{+path}","compare_url":"https://api.github.com/repos/Anakonda/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Anakonda/borg/merges","archive_url":"https://api.github.com/repos/Anakonda/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Anakonda/borg/downloads","issues_url":"https://api.github.com/repos/Anakonda/borg/issues{/number}","pulls_url":"https://api.github.com/repos/Anakonda/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/Anakonda/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/Anakonda/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Anakonda/borg/labels{/name}","releases_url":"https://api.github.com/repos/Anakonda/borg/releases{/id}","deployments_url":"https://api.github.com/repos/Anakonda/borg/deployments","created_at":"2016-04-18T01:12:17Z","updated_at":"2016-04-18T01:12:18Z","pushed_at":"2016-07-30T20:36:40Z","git_url":"git://github.com/Anakonda/borg.git","ssh_url":"git@github.com:Anakonda/borg.git","clone_url":"https://github.com/Anakonda/borg.git","svn_url":"https://github.com/Anakonda/borg","homepage":"https://borgbackup.github.io/","size":4830,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"borgbackup:windows","ref":"windows","sha":"9123beb48cbc287dc8c51a678e95afadbb288c2f","user":{"login":"borgbackup","id":12418060,"avatar_url":"https://avatars.githubusercontent.com/u/12418060?v=3","gravatar_id":"","url":"https://api.github.com/users/borgbackup","html_url":"https://github.com/borgbackup","followers_url":"https://api.github.com/users/borgbackup/followers","following_url":"https://api.github.com/users/borgbackup/following{/other_user}","gists_url":"https://api.github.com/users/borgbackup/gists{/gist_id}","starred_url":"https://api.github.com/users/borgbackup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgbackup/subscriptions","organizations_url":"https://api.github.com/users/borgbackup/orgs","repos_url":"https://api.github.com/users/borgbackup/repos","events_url":"https://api.github.com/users/borgbackup/events{/privacy}","received_events_url":"https://api.github.com/users/borgbackup/received_events","type":"Organization","site_admin":false},"repo":{"id":35517126,"name":"borg","full_name":"borgbackup/borg","owner":{"login":"borgbackup","id":12418060,"avatar_url":"https://avatars.githubusercontent.com/u/12418060?v=3","gravatar_id":"","url":"https://api.github.com/users/borgbackup","html_url":"https://github.com/borgbackup","followers_url":"https://api.github.com/users/borgbackup/followers","following_url":"https://api.github.com/users/borgbackup/following{/other_user}","gists_url":"https://api.github.com/users/borgbackup/gists{/gist_id}","starred_url":"https://api.github.com/users/borgbackup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borgbackup/subscriptions","organizations_url":"https://api.github.com/users/borgbackup/orgs","repos_url":"https://api.github.com/users/borgbackup/repos","events_url":"https://api.github.com/users/borgbackup/events{/privacy}","received_events_url":"https://api.github.com/users/borgbackup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/borgbackup/borg","description":"Deduplicating backup program with compression and authenticated encryption.","fork":false,"url":"https://api.github.com/repos/borgbackup/borg","forks_url":"https://api.github.com/repos/borgbackup/borg/forks","keys_url":"https://api.github.com/repos/borgbackup/borg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/borgbackup/borg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/borgbackup/borg/teams","hooks_url":"https://api.github.com/repos/borgbackup/borg/hooks","issue_events_url":"https://api.github.com/repos/borgbackup/borg/issues/events{/number}","events_url":"https://api.github.com/repos/borgbackup/borg/events","assignees_url":"https://api.github.com/repos/borgbackup/borg/assignees{/user}","branches_url":"https://api.github.com/repos/borgbackup/borg/branches{/branch}","tags_url":"https://api.github.com/repos/borgbackup/borg/tags","blobs_url":"https://api.github.com/repos/borgbackup/borg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/borgbackup/borg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/borgbackup/borg/git/refs{/sha}","trees_url":"https://api.github.com/repos/borgbackup/borg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/borgbackup/borg/statuses/{sha}","languages_url":"https://api.github.com/repos/borgbackup/borg/languages","stargazers_url":"https://api.github.com/repos/borgbackup/borg/stargazers","contributors_url":"https://api.github.com/repos/borgbackup/borg/contributors","subscribers_url":"https://api.github.com/repos/borgbackup/borg/subscribers","subscription_url":"https://api.github.com/repos/borgbackup/borg/subscription","commits_url":"https://api.github.com/repos/borgbackup/borg/commits{/sha}","git_commits_url":"https://api.github.com/repos/borgbackup/borg/git/commits{/sha}","comments_url":"https://api.github.com/repos/borgbackup/borg/comments{/number}","issue_comment_url":"https://api.github.com/repos/borgbackup/borg/issues/comments{/number}","contents_url":"https://api.github.com/repos/borgbackup/borg/contents/{+path}","compare_url":"https://api.github.com/repos/borgbackup/borg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/borgbackup/borg/merges","archive_url":"https://api.github.com/repos/borgbackup/borg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/borgbackup/borg/downloads","issues_url":"https://api.github.com/repos/borgbackup/borg/issues{/number}","pulls_url":"https://api.github.com/repos/borgbackup/borg/pulls{/number}","milestones_url":"https://api.github.com/repos/borgbackup/borg/milestones{/number}","notifications_url":"https://api.github.com/repos/borgbackup/borg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/borgbackup/borg/labels{/name}","releases_url":"https://api.github.com/repos/borgbackup/borg/releases{/id}","deployments_url":"https://api.github.com/repos/borgbackup/borg/deployments","created_at":"2015-05-12T23:10:47Z","updated_at":"2016-07-30T01:00:18Z","pushed_at":"2016-07-30T22:26:23Z","git_url":"git://github.com/borgbackup/borg.git","ssh_url":"git@github.com:borgbackup/borg.git","clone_url":"https://github.com/borgbackup/borg.git","svn_url":"https://github.com/borgbackup/borg","homepage":"https://borgbackup.readthedocs.io/","size":5880,"stargazers_count":1363,"watchers_count":1363,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":124,"mirror_url":null,"open_issues_count":202,"forks":124,"open_issues":202,"watchers":1363,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1411"},"html":{"href":"https://github.com/borgbackup/borg/pull/1411"},"issue":{"href":"https://api.github.com/repos/borgbackup/borg/issues/1411"},"comments":{"href":"https://api.github.com/repos/borgbackup/borg/issues/1411/comments"},"review_comments":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1411/comments"},"review_comment":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/borgbackup/borg/pulls/1411/commits"},"statuses":{"href":"https://api.github.com/repos/borgbackup/borg/statuses/97f07657ee37b48b03aa3fb4ca2647c85395d264"}}}}
{"actor":{"display_login":"enkore"}}