mirror of
https://github.com/qwjyh/xdbm
synced 2024-11-22 06:40:12 +09:00
update doc
This commit is contained in:
parent
b54cbf00f0
commit
bf1a5e23fe
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ pub mod local_info;
|
|||
pub mod online_storage;
|
||||
pub mod physical_drive_partition;
|
||||
|
||||
/// Get `Vec<Storage>` from devices.yml([DEVICESFILE]).
|
||||
/// If [DEVICESFILE] isn't found, return empty vec.
|
||||
/// Get `HashMap<String, Storage>` from devices.yml([devices::DEVICESFILE]).
|
||||
/// If [devices::DEVICESFILE] isn't found, return empty vec.
|
||||
pub fn get_storages(config_dir: &path::Path) -> Result<HashMap<String, Storage>> {
|
||||
if let Some(storages_file) = fs::read_dir(&config_dir)?
|
||||
.filter(|f| {
|
||||
|
|
Loading…
Reference in a new issue