mirror of
https://github.com/qwjyh/xdbm
synced 2024-11-22 14:50: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 online_storage;
|
||||||
pub mod physical_drive_partition;
|
pub mod physical_drive_partition;
|
||||||
|
|
||||||
/// Get `Vec<Storage>` from devices.yml([DEVICESFILE]).
|
/// Get `HashMap<String, Storage>` from devices.yml([devices::DEVICESFILE]).
|
||||||
/// If [DEVICESFILE] isn't found, return empty vec.
|
/// If [devices::DEVICESFILE] isn't found, return empty vec.
|
||||||
pub fn get_storages(config_dir: &path::Path) -> Result<HashMap<String, Storage>> {
|
pub fn get_storages(config_dir: &path::Path) -> Result<HashMap<String, Storage>> {
|
||||||
if let Some(storages_file) = fs::read_dir(&config_dir)?
|
if let Some(storages_file) = fs::read_dir(&config_dir)?
|
||||||
.filter(|f| {
|
.filter(|f| {
|
||||||
|
|
Loading…
Reference in a new issue