maps
maps copied to clipboard
Add option to restrict scan to certain folder (recursively)
The maps:scan-photos command actually runs through all the user files which is definitely not wanted when you have not only photos in your userspace. An option to restrict the scan to a certain folder ist needed. This is true for maps:scan-tracks also (because .gpx is not unique to .gpx Tracks, but also to GuitarPro files for example).
Would something like work #228? Limiting the media scam is just the initql scam after that changes are monitored.
It would be much better design to restrict the scanning itself and not needing to control it via an additional file. I can think of a bunch of constellations where folders containing images are created automatically without user interaction. Think of project directories with media assets or think of external storage where you have only read-access.
Well let's stay consistent with other apps like photos. @nextcloud/photos how do you handle this?
Let's also merge #271 to this discussion as it addresses the same issue or?
From #271 @icetear:
In order to skip scanning hidden files (e.g. thumbnails and autogenerated system files) and to control what kind of images need to be scanned, a regexp restriction as a scanning pattern would be very handy.
what about occ maps:scan-photos --path=/files/userid/folder
?
or occ maps:scan-photos userid
?
We have a very related issue in the Photos app at: Limit Photos to a single folder + subtree https://github.com/nextcloud/photos/issues/141
We should probably coordinate and make sure the Maps app can take the same location that is specified in the Photos app. (At least for photos, tracks etc are separate.)
cc @skjnldsv @Mikescops for Photos
I came here looking for this option.
I think it would be useful to be able to have several folders scanned as I have photographs and images in several album folders. Some I would want to show on the map, but not others.
I hope that's clear. I'll try and clarify further if not.
I should add that this is a fantastic addition to Nextcloud, I love it!! Thanks for developing it.
Maps scanned my external storage, where a large number of material photos of games are stored.🤣