A small FUSE-filesystem to mirror another directory (RO), but filter it slightly based on file endings.
Compile
git clone git@github.com:teo8192/filterfs.git
cd filterfs
cargo build --releaseInstall
sudo cp target/release/filterfsTo mount a RO mirror that only shows m4b and pdf files:
mount -t fuse.filterfs /source/directory /target/directory -o 'incl=*.m4b,incl=*.pdf'Pass no options to have a RO mirror of all files.
incl=globinclude files matching globexcl=globexclude files matching globdincl=globinclude directories matching globdexcl=globexclude directories matching globprune=nhow deep to recursively look for empty directories to prune. Default is0, i.e. no pruning. Beware that pruning may cause performance losses, especially if the underlying directory contains a lot of directories again.
There are still some permission trouble, so this needs to be figured out.