mirror of
https://git.nickiel.net/Nickiel/nicks_nextcloud_integrations.git
synced 2025-04-04 12:26:12 -07:00
more fine-tune logging
This commit is contained in:
parent
40131dcad8
commit
6ef6ef6588
1 changed files with 7 additions and 1 deletions
|
@ -37,7 +37,13 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let mut drives: Vec<String> = vec![];
|
let mut drives: Vec<String> = vec![];
|
||||||
|
|
||||||
{
|
{
|
||||||
let rust_drives = std::fs::read_dir("/dev/").unwrap();
|
let rust_drives = match std::fs::read_dir("/dev/") {
|
||||||
|
Ok(val) => val,
|
||||||
|
Err(e) => {
|
||||||
|
println!("Error opening /dev/: {}", e.to_string());
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
for path in rust_drives {
|
for path in rust_drives {
|
||||||
match path {
|
match path {
|
||||||
|
|
Loading…
Add table
Reference in a new issue