{"action":"created","issue":{"url":"https://api.github.com/repos/magnusja/libaums/issues/137","repository_url":"https://api.github.com/repos/magnusja/libaums","labels_url":"https://api.github.com/repos/magnusja/libaums/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/magnusja/libaums/issues/137/comments","events_url":"https://api.github.com/repos/magnusja/libaums/issues/137/events","html_url":"https://github.com/magnusja/libaums/issues/137","id":306454683,"number":137,"title":"How can i get Root Directory name for connected USB device ?","user":{"login":"Jay268","id":26482156,"avatar_url":"https://avatars0.githubusercontent.com/u/26482156?v=4","gravatar_id":"","url":"https://api.github.com/users/Jay268","html_url":"https://github.com/Jay268","followers_url":"https://api.github.com/users/Jay268/followers","following_url":"https://api.github.com/users/Jay268/following{/other_user}","gists_url":"https://api.github.com/users/Jay268/gists{/gist_id}","starred_url":"https://api.github.com/users/Jay268/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jay268/subscriptions","organizations_url":"https://api.github.com/users/Jay268/orgs","repos_url":"https://api.github.com/users/Jay268/repos","events_url":"https://api.github.com/users/Jay268/events{/privacy}","received_events_url":"https://api.github.com/users/Jay268/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-19T13:07:11Z","updated_at":"2018-03-20T05:15:12Z","closed_at":"2018-03-19T20:57:01Z","author_association":"NONE","body":"Hii @magnusja \r\n\r\nI am using this library for USB OTG device connection and i am displaying all the data inside app.\r\n\r\nI need your help to get Root Directory name\r\n\r\nsay for E.G \r\n\r\nIf i have images in my USB drive and when i click upon one of them i need to display it in bigger view but i am not be able to get path instead i am only getting name.\r\n\r\nSo what i am trying is to get path something like below which is used by ES File Explorer app while viewing the image from connected USB Drive.\r\n\r\nusb://1002/UsbStorage/image.jpeg\r\n\r\nI can able to get 1002 as it seems looking device id using below code.\r\n\r\n`Toast.makeText(mContext, \"getDeviceId : \" + massStorageDevices[currentDevice].getUsbDevice().getDeviceId(), Toast.LENGTH_SHORT).show();`\r\n\r\n But i am not be able to get UsbStorage i mean root directory name dynamically.\r\n\r\nAny help will be greatly appreciated.\r\n\r\nI tried to get using `massStorageDevices[currentDevice].getPartitions().get(0).getFileSystem().getRootDirectory().getName()` but is is only showing me / in toast."},"comment":{"url":"https://api.github.com/repos/magnusja/libaums/issues/comments/374478771","html_url":"https://github.com/magnusja/libaums/issues/137#issuecomment-374478771","issue_url":"https://api.github.com/repos/magnusja/libaums/issues/137","id":374478771,"user":{"login":"Jay268","id":26482156,"avatar_url":"https://avatars0.githubusercontent.com/u/26482156?v=4","gravatar_id":"","url":"https://api.github.com/users/Jay268","html_url":"https://github.com/Jay268","followers_url":"https://api.github.com/users/Jay268/followers","following_url":"https://api.github.com/users/Jay268/following{/other_user}","gists_url":"https://api.github.com/users/Jay268/gists{/gist_id}","starred_url":"https://api.github.com/users/Jay268/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jay268/subscriptions","organizations_url":"https://api.github.com/users/Jay268/orgs","repos_url":"https://api.github.com/users/Jay268/repos","events_url":"https://api.github.com/users/Jay268/events{/privacy}","received_events_url":"https://api.github.com/users/Jay268/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T05:15:12Z","updated_at":"2018-03-20T05:15:12Z","author_association":"NONE","body":"@magnusja I mean to say `usb://1002/UsbStorage/image.jpeg` what is UsbStorage here inside path used by ES File Explorer while viewing any image  , videos etc... from USB drive itself. Is that common for all ?"}}
{"actor":{"display_login":"Jay268"}}