src/tools/disks.rs: export read_sys
This commit is contained in:
parent
75410d65ef
commit
3ed07ed2cd
@ -222,7 +222,7 @@ impl Disk {
|
|||||||
/// Read from a file in this device's sys path.
|
/// Read from a file in this device's sys path.
|
||||||
///
|
///
|
||||||
/// Note: path must be a relative path!
|
/// Note: path must be a relative path!
|
||||||
fn read_sys(&self, path: &Path) -> io::Result<Option<Vec<u8>>> {
|
pub fn read_sys(&self, path: &Path) -> io::Result<Option<Vec<u8>>> {
|
||||||
assert!(path.is_relative());
|
assert!(path.is_relative());
|
||||||
|
|
||||||
std::fs::read(self.syspath().join(path))
|
std::fs::read(self.syspath().join(path))
|
||||||
|
Loading…
Reference in New Issue
Block a user