stumpapp / stump

A free and open source comics, manga and digital book server with OPDS support (WIP)
https://stumpapp.dev
MIT License
988 stars 44 forks source link

.stumpignore files #53

Closed aaronleopold closed 8 months ago

aaronleopold commented 2 years ago

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

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
}
berkingurcan commented 2 years ago

I'll take this

DieselTech commented 1 year ago

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.