no exist on missing files

This commit is contained in:
jb-alvarado 2023-01-22 20:05:28 +01:00
parent 143085991d
commit 70c769b45d
2 changed files with 2 additions and 9 deletions

@ -1 +1 @@
Subproject commit 072002c68451a5e7e62046a72ddac1d4bae7fcea Subproject commit 92c7a8b041c897fe9ed4819a61c500e61fc5318f

View File

@ -1,6 +1,5 @@
use std::{ use std::{
path::Path, path::Path,
process::exit,
sync::{ sync::{
atomic::{AtomicUsize, Ordering}, atomic::{AtomicUsize, Ordering},
{Arc, Mutex}, {Arc, Mutex},
@ -46,11 +45,7 @@ impl FolderSource {
for path in &path_list { for path in &path_list {
if !Path::new(path).is_dir() { if !Path::new(path).is_dir() {
error!( error!("Path not exists: <b><magenta>{path}</></b>");
"Path not exists: <b><magenta>{}</></b>",
path
);
exit(1);
} }
for entry in WalkDir::new(path.clone()) for entry in WalkDir::new(path.clone())
@ -70,8 +65,6 @@ impl FolderSource {
"no playable files found under: <b><magenta>{:?}</></b>", "no playable files found under: <b><magenta>{:?}</></b>",
path_list path_list
); );
exit(1);
} }
if config.storage.shuffle { if config.storage.shuffle {