Andre-Littoz - 2019-03-20

The cause is not in the mv itself. If mv command is reverted, bug #275 reoccurs.

What is really needed is to prevent extra directories from being created in the temporary indexing directory. For that, the cp command used to allow incremental indexing must be corrected.

The present cp -r <index_dir>/<version> <tempd_dir> always creates a version/ subdirectory resulting in the form of the final mv command. cp must be modified to only copy the index files, but those are "hidden" files (name starting with a dot). Consequently, they aren't automatically copied when using wildcard *. Fortunately, they all ahave a .glimpse_ prefix. Thus the command takes the form:

cp <index_dir>/<version>/.glimpse_* <temp_dir>

and the mv command has no use of aversion/ subpath.

Fixed in 2.3.5