src/tools/disks.rs; use correct subdir to check holders
This commit is contained in:
parent
4c1e8855cc
commit
f03a0e509e
|
@ -439,7 +439,9 @@ impl Disk {
|
||||||
.info
|
.info
|
||||||
.has_holders
|
.has_holders
|
||||||
.get_or_try_init(|| -> io::Result<bool> {
|
.get_or_try_init(|| -> io::Result<bool> {
|
||||||
for entry in std::fs::read_dir(self.syspath())? {
|
let mut subdir = self.syspath().to_owned();
|
||||||
|
subdir.push("holders");
|
||||||
|
for entry in std::fs::read_dir(subdir)? {
|
||||||
match entry?.file_name().as_bytes() {
|
match entry?.file_name().as_bytes() {
|
||||||
b"." | b".." => (),
|
b"." | b".." => (),
|
||||||
_ => return Ok(true),
|
_ => return Ok(true),
|
||||||
|
|
Loading…
Reference in New Issue