{"action":"opened","issue":{"url":"https://api.github.com/repos/TadLeonard/tfatool/issues/16","repository_url":"https://api.github.com/repos/TadLeonard/tfatool","labels_url":"https://api.github.com/repos/TadLeonard/tfatool/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/TadLeonard/tfatool/issues/16/comments","events_url":"https://api.github.com/repos/TadLeonard/tfatool/issues/16/events","html_url":"https://github.com/TadLeonard/tfatool/issues/16","id":359354937,"node_id":"MDU6SXNzdWUzNTkzNTQ5Mzc=","number":16,"title":"Make deleting directories more convenient","user":{"login":"TadLeonard","id":6044830,"node_id":"MDQ6VXNlcjYwNDQ4MzA=","avatar_url":"https://avatars3.githubusercontent.com/u/6044830?v=4","gravatar_id":"","url":"https://api.github.com/users/TadLeonard","html_url":"https://github.com/TadLeonard","followers_url":"https://api.github.com/users/TadLeonard/followers","following_url":"https://api.github.com/users/TadLeonard/following{/other_user}","gists_url":"https://api.github.com/users/TadLeonard/gists{/gist_id}","starred_url":"https://api.github.com/users/TadLeonard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TadLeonard/subscriptions","organizations_url":"https://api.github.com/users/TadLeonard/orgs","repos_url":"https://api.github.com/users/TadLeonard/repos","events_url":"https://api.github.com/users/TadLeonard/events{/privacy}","received_events_url":"https://api.github.com/users/TadLeonard/received_events","type":"User","site_admin":false},"labels":[{"id":312373408,"node_id":"MDU6TGFiZWwzMTIzNzM0MDg=","url":"https://api.github.com/repos/TadLeonard/tfatool/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-12T07:46:21Z","updated_at":"2018-09-12T07:46:21Z","closed_at":null,"author_association":"OWNER","body":"Per @hntuan94, it would be convenient if `tfatool` exposed a `delete_directory` function. This function would:\r\n\r\n- walk through the directory and delete any files within\r\n- when the directory's empty, it'd delete the directory itself\r\n\r\nThe challenge here is to be _absolutely sure_ it's empty before deleting. Listing the contents of the directory before making the final delete would be a good idea. Care is needed because FlashAir will _let_ you delete a directory that isn't empty, but the files within will become unreadable and undeletable forever afterwards. Scary!"}}
{"actor":{"display_login":"TadLeonard"}}