android - Read files from USB bulk transfer -


i attempting write chrome app transfer files android or ios device plugged machine through usb. i'm working google nexus 7 , 5 device @ moment. using chrome usb api, can connect device, , have access list of of interfaces, , within each interface have access list of endpoints interface. can claim interface, , bulk transfer.

i want find particular directory know name of, , copy directory of files , subdirectories, , files , subdirectories, host machine.

but, i'm not sure how go it. interface use? endpoint within interface use? have pass in length of data want read bulk transfer, won't able determine directory/file size before doing transfer. how know length of data read in? once data back, how convert directory/file format can use?


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -