Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recursive path scan #77

Merged
merged 3 commits into from
Nov 27, 2024
Merged

Recursive path scan #77

merged 3 commits into from
Nov 27, 2024

Conversation

waveyboym
Copy link
Member

@waveyboym waveyboym commented Nov 27, 2024

Describe your changes

This PR introduces a new feature in the advanced settings that allows users to specify the depth for file scanning. The depth level determines how many directory levels the scanner will traverse before stopping.

Key details:

  • Level 1: The scanner only inspects files in the given folder without looking into subfolders.
  • Level 2: The scanner inspects the given folder and its immediate subfolders.
  • Level 3: The scanner goes one level deeper, inspecting the given folder, its subfolders, and their subfolders.
  • The feature uses a breadth-first search approach to traverse the directory tree based on the specified depth.
    Example:
    Suppose the folder structure is as follows:
C:\folder_a
├── file_1.txt
├── folder_aa
│   ├── file_2.txt
│   ├── folder_aaa
│   │   ├── file_3.txt
│   │   └── folder_aaaa
│   └── folder_aab
├── folder_ab
  • With Level 1, only C:\folder_a is scanned, returning file_1.txt.
  • With Level 2, folder_aa and folder_ab are also scanned, returning file_2.txt and the contents of folder_ab.
  • With Level 3, the scanner includes folder_aaa and folder_aab, returning file_3.txt and the files in those subfolders.
  • With Level 4 or higher, deeper levels such as folder_aaaa will also be scanned.

Issue ticket number and link

#70

Checklist before requesting a review

  • I have performed a self-review of my code
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics?
  • Will this be part of a product update? If yes, please write one phrase about this update.
    This update introduces customizable file scan depth, enabling more precise control over directory traversal during file scanning.

@waveyboym waveyboym added enhancement New feature or request backend-rust This pr involves backend rust code changes api changes This pr modifies backend exposed functions ui/ux This pr/issue addresses a ui/ux issue or involves a ui/ux change minor-bug-fix This pr contains some minor bug-fixes and patches labels Nov 27, 2024
@waveyboym waveyboym self-assigned this Nov 27, 2024
@waveyboym waveyboym linked an issue Nov 27, 2024 that may be closed by this pull request
@waveyboym waveyboym merged commit 8f3faf2 into main-app-dev Nov 27, 2024
@waveyboym waveyboym deleted the recursive-path-scan branch November 27, 2024 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api changes This pr modifies backend exposed functions backend-rust This pr involves backend rust code changes enhancement New feature or request minor-bug-fix This pr contains some minor bug-fixes and patches ui/ux This pr/issue addresses a ui/ux issue or involves a ui/ux change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Music Library
1 participant