{"action":"opened","issue":{"url":"https://api.github.com/repos/borgbackup/borg/issues/1776","repository_url":"https://api.github.com/repos/borgbackup/borg","labels_url":"https://api.github.com/repos/borgbackup/borg/issues/1776/labels{/name}","comments_url":"https://api.github.com/repos/borgbackup/borg/issues/1776/comments","events_url":"https://api.github.com/repos/borgbackup/borg/issues/1776/events","html_url":"https://github.com/borgbackup/borg/issues/1776","id":186158252,"number":1776,"title":"Repository deletion is grossly inefficient","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},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-30T19:50:08Z","updated_at":"2016-10-30T19:50:08Z","closed_at":null,"body":"We use shutil.rmtree for the data directories. rmtree is built on the wrong listdir() API[1] instead of scandir(). Therefore deleting a repository takes far longer than need be, especially on hard drives.\r\n\r\nWhile technically a defect in Python we can also easily fix it for us.\r\n\r\n[1] https://hg.python.org/cpython/file/3.5/Lib/shutil.py#l393"}}
{"actor":{"display_login":"enkore"}}