Skip to content

Commit

Permalink
Merge pull request magnusja#151 from Depau/expose-blockdev
Browse files Browse the repository at this point in the history
Expose block device in API so it can be written to directly
  • Loading branch information
magnusja authored Aug 16, 2018
2 parents ce2d6b2 + f73be8b commit 7340993
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,16 @@ public List<Partition> getPartitions() {
public UsbDevice getUsbDevice() {
return usbDevice;
}

/**
* Returns the block device interface for this device.
*
* Only use this if you know what you are doing, for a interacting (listing/reading/writing files)
* with a pen drive this is usually not needed
*
* @return The BlockDeviceDriver implementation
*/
public BlockDeviceDriver getBlockDevice() {
return blockDevice;
}
}

0 comments on commit 7340993

Please sign in to comment.