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

.stumpignore files #53

Closed
1 of 5 tasks
aaronleopold opened this issue Sep 20, 2022 · 2 comments
Closed
1 of 5 tasks

.stumpignore files #53

aaronleopold opened this issue Sep 20, 2022 · 2 comments
Labels
core Relating to Stump's Rust core

Comments

@aaronleopold
Copy link
Collaborator

aaronleopold commented Sep 20, 2022

I think it would be a nice-to-have to implement some sort of support for a .stumpignore file.

  • when present, read .stumpignore during the scan_series and scan_series_batch functions
  • support globbing
    • allow negations, e.g. some_folder/* and !some_folder/target.cbz
  • ignore files during scan according to .stumpignore contents
  • special considerations for .stumpignore at the root of a library

Potential resources:

pseudo code

let mut builder = GlobSetBuilder::new();

if path.join(".stumpignore").exists() {
    func_to_populate_builder(&mut builder, path.join(".stumpignore"));
}

let glob_set = builder.build()?;

... further down the code ...

if !builder.is_empty() && set.matches(current_path) {
    // ignore this entry
}
@aaronleopold aaronleopold added this to the 0.1.0 milestone Sep 20, 2022
@berkingurcan
Copy link
Contributor

I'll take this

@DieselTech
Copy link

DieselTech commented Oct 25, 2023

From the discord convo: https://discord.com/channels/972593831172272148/1166511190336352286

It being in the web UI would let me work on it remotely without having to have SFTP access to the underlying file system
Again not trying to make things too crazy, but could have options to quick turn on / off common file types

Enable:
[X] - Jpeg       [X] - CBZ
[  ] - PDF       [X] - CBR

Really I'm just trying to avoid scattering tons of loose sidecar files across the file system.

@aaronleopold aaronleopold closed this as not planned Won't fix, can't repro, duplicate, stale Feb 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Relating to Stump's Rust core
Projects
Status: Done
Development

No branches or pull requests

3 participants