maps icon indicating copy to clipboard operation
maps copied to clipboard

Add option to restrict scan to certain folder (recursively)

Open icetear opened this issue 5 years ago • 8 comments

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).

icetear avatar Jan 23 '20 06:01 icetear

Would something like work #228? Limiting the media scam is just the initql scam after that changes are monitored.

tacruc avatar Jan 23 '20 06:01 tacruc

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.

icetear avatar Jan 23 '20 06:01 icetear

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?

tacruc avatar Jan 23 '20 07:01 tacruc

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.

tacruc avatar Jan 23 '20 08:01 tacruc

what about occ maps:scan-photos --path=/files/userid/folder ? or occ maps:scan-photos userid ?

szaimen avatar Jan 23 '20 11:01 szaimen

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

jancborchardt avatar Jan 23 '20 11:01 jancborchardt

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.

vascowhite avatar Feb 20 '20 06:02 vascowhite

Maps scanned my external storage, where a large number of material photos of games are stored.🤣

yunyuyuan avatar Nov 26 '23 11:11 yunyuyuan