{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/2413","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/2413/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/2413/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/2413/events","html_url":"https://github.com/micropython/micropython/pull/2413","id":176362255,"number":2413,"title":"esp8266: Added os.getfree() to get available filesystem space.","user":{"login":"hosaka","id":171876,"avatar_url":"https://avatars.githubusercontent.com/u/171876?v=3","gravatar_id":"","url":"https://api.github.com/users/hosaka","html_url":"https://github.com/hosaka","followers_url":"https://api.github.com/users/hosaka/followers","following_url":"https://api.github.com/users/hosaka/following{/other_user}","gists_url":"https://api.github.com/users/hosaka/gists{/gist_id}","starred_url":"https://api.github.com/users/hosaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosaka/subscriptions","organizations_url":"https://api.github.com/users/hosaka/orgs","repos_url":"https://api.github.com/users/hosaka/repos","events_url":"https://api.github.com/users/hosaka/events{/privacy}","received_events_url":"https://api.github.com/users/hosaka/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2016-09-12T12:24:15Z","updated_at":"2016-09-25T20:55:39Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/micropython/micropython/pulls/2413","html_url":"https://github.com/micropython/micropython/pull/2413","diff_url":"https://github.com/micropython/micropython/pull/2413.diff","patch_url":"https://github.com/micropython/micropython/pull/2413.patch"},"body":"From [forum discussion](http://forum.micropython.org/viewtopic.php?f=16&t=2361&sid=9536319ce528e47d86970d6b269ddca8).\r\n\r\nExample use case (markxr):\r\n* Check free fs space\r\n* If less than some threshold, delete the oldest file\r\n* Write data to new file....\r\n\r\n`os.getfree(path)` returns the free space available in the VFS. Is the block size assumed to be 512 bit? Not sure about leaving it hardcoded."},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/249446138","html_url":"https://github.com/micropython/micropython/pull/2413#issuecomment-249446138","issue_url":"https://api.github.com/repos/micropython/micropython/issues/2413","id":249446138,"user":{"login":"hosaka","id":171876,"avatar_url":"https://avatars.githubusercontent.com/u/171876?v=3","gravatar_id":"","url":"https://api.github.com/users/hosaka","html_url":"https://github.com/hosaka","followers_url":"https://api.github.com/users/hosaka/followers","following_url":"https://api.github.com/users/hosaka/following{/other_user}","gists_url":"https://api.github.com/users/hosaka/gists{/gist_id}","starred_url":"https://api.github.com/users/hosaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hosaka/subscriptions","organizations_url":"https://api.github.com/users/hosaka/orgs","repos_url":"https://api.github.com/users/hosaka/repos","events_url":"https://api.github.com/users/hosaka/events{/privacy}","received_events_url":"https://api.github.com/users/hosaka/received_events","type":"User","site_admin":false},"created_at":"2016-09-25T20:55:39Z","updated_at":"2016-09-25T20:55:39Z","body":"Testcase has been updated, as well as the total vfs size (total == free blocks on an empty VFS). If this gets merged, I can also update the docs."}}
{"actor":{"display_login":"hosaka"}}