fs = createObject("roFileSystem")
usb_drive = invalid
for each vol in fs.getVolumeList():
if left(vol, 3) = "ext" then usb_drive = vol
While this method failed for me it did get me to think on it more and what I didnt realize for some reason is that it needs to be done in a task component.
So for anyone wondering how to access the usb or volumes available in general.
Create a task and call it from your scene, group or custom component with Brightscript.
m.volumeTask = m.top.FindNode("volumeList") ' to stop the task after it returns the data m.volumeTask.control = "RUN"
Add the node to stop the task.
<volumeReader id="volumeList" control="STOP" />
And the for the task node itself...
sub init() m.top.functionName = "getvolume" end sub sub getvolume() fs = createObject("roFileSystem") print fs.getVolumeList() end sub
This in turn will return your roList as documented.
<Component: roList> = ( "cachefs:" "common:" "ext1:" "ext2:" "pkg:" "tmp:" )
Maybe this help some people who had a misunderstanding such as myself.