{"action":"created","issue":{"url":"https://api.github.com/repos/borgbackup/borg/issues/775","repository_url":"https://api.github.com/repos/borgbackup/borg","labels_url":"https://api.github.com/repos/borgbackup/borg/issues/775/labels{/name}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/775/comments","events_url":"https://api.github.com/repos/borgbackup/borg/issues/775/events","html_url":"https://github.com/borgbackup/borg/issues/775","id":142088089,"number":775,"title":"--exclude does not work if path have more than single slash separating dirs","user":{"login":"slashbeast","id":180211,"avatar_url":"https://avatars.githubusercontent.com/u/180211?v=3","gravatar_id":"","url":"https://api.github.com/users/slashbeast","html_url":"https://github.com/slashbeast","followers_url":"https://api.github.com/users/slashbeast/followers","following_url":"https://api.github.com/users/slashbeast/following{/other_user}","gists_url":"https://api.github.com/users/slashbeast/gists{/gist_id}","starred_url":"https://api.github.com/users/slashbeast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slashbeast/subscriptions","organizations_url":"https://api.github.com/users/slashbeast/orgs","repos_url":"https://api.github.com/users/slashbeast/repos","events_url":"https://api.github.com/users/slashbeast/events{/privacy}","received_events_url":"https://api.github.com/users/slashbeast/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-19T18:18:38Z","updated_at":"2016-03-20T14:15:27Z","closed_at":"2016-03-19T18:29:12Z","body":"Hello,\r\n\r\nIt seems that '-e //usr/share/doc' for backing up /usr/share won't work, it won't excude this dir. Replacing '//usr/share/doc' with '/./usr/share/doc' gets the job done.\r\n\r\nWhen writting simple shell scripts which utilize borg it's rather easy to concatenate two variables, which may result in having multiple slashes instead of one and one could expect that it won't be a problem."},"comment":{"url":"https://api.github.com/repos/borgbackup/borg/issues/comments/198939294","html_url":"https://github.com/borgbackup/borg/issues/775#issuecomment-198939294","issue_url":"https://api.github.com/repos/borgbackup/borg/issues/775","id":198939294,"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},"created_at":"2016-03-20T14:15:27Z","updated_at":"2016-03-20T14:15:27Z","body":"This wouldn't help in your case, though. I didn't notice that your path started with //, and @ThomasWaldmann is absolutely right that specifically those are broken (implementation defined).\r\n\r\n```\r\n>>> import os.path\r\n>>> os.path.normpath(\"//asdf\")\r\n'//asdf'\r\n>>> os.path.normpath(\"///asdf\")\r\n'/asdf'\r\n```"}}