Skip to content

Commit

Permalink
Fix library imports
Browse files Browse the repository at this point in the history
  • Loading branch information
martpie committed Oct 1, 2024
1 parent 01ad926 commit 56cc379
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src-tauri/src/libs/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub fn scan_dir(path: &PathBuf, allowed_extensions: &[&str]) -> Vec<PathBuf> {
WalkDir::new(path)
.follow_links(true)
.into_iter()
.filter_entry(|entry| is_dir_visible(entry) && entry.file_type().is_file())
.filter_entry(is_dir_visible)
.filter_map(Result::ok)
.map(|entry| entry.into_path())
.filter(|path| is_file_valid(path, allowed_extensions))
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/plugins/database.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ async fn import_tracks_to_library<R: Runtime>(

track_paths.retain(|path| !existing_paths.contains(path));

info!("Found {} files to import", track_paths.len());
info!(
"{} tracks already imported (they will be skipped)",
scanned_paths_count - track_paths.len()
Expand Down

0 comments on commit 56cc379

Please sign in to comment.