{"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":6,"created_at":"2018-03-19T13:07:11Z","updated_at":"2018-03-20T06:32:55Z","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/374490835","html_url":"https://github.com/magnusja/libaums/issues/137#issuecomment-374490835","issue_url":"https://api.github.com/repos/magnusja/libaums/issues/137","id":374490835,"user":{"login":"magnusja","id":1659457,"avatar_url":"https://avatars0.githubusercontent.com/u/1659457?v=4","gravatar_id":"","url":"https://api.github.com/users/magnusja","html_url":"https://github.com/magnusja","followers_url":"https://api.github.com/users/magnusja/followers","following_url":"https://api.github.com/users/magnusja/following{/other_user}","gists_url":"https://api.github.com/users/magnusja/gists{/gist_id}","starred_url":"https://api.github.com/users/magnusja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magnusja/subscriptions","organizations_url":"https://api.github.com/users/magnusja/orgs","repos_url":"https://api.github.com/users/magnusja/repos","events_url":"https://api.github.com/users/magnusja/events{/privacy}","received_events_url":"https://api.github.com/users/magnusja/received_events","type":"User","site_admin":false},"created_at":"2018-03-20T06:32:55Z","updated_at":"2018-03-20T06:32:55Z","author_association":"OWNER","body":"This is not possible with libaums directly because it works in user space and is not able to create a mount point. You need to use the http module for that.\r\n\r\nIf ES File Explorer does that then it is very likely that your device supports mass storage devices by default and you do not need libaums to access them."}}
{"actor":{"display_login":"magnusja"}}