scanner
scanner copied to clipboard
Scans automatically overwrite previous scans in scan folder when filename is the same
Describe the bug When a scan is performed and automatically saved in the process, it will overwrite previous scans in the scan results folder when the filename generated by the pattern is the same as of an existing file.
To Reproduce
- use any static/fixed scan save location
- in settings for filename select Date or any custom pattern that that does not include small time units like minutes and seconds
- scan multiple (2+) documents in a row
- find only the most recent document in scan folder, since all others get overwritten along the way (in case your filenames do not differ in any other way)
Expected behavior Keep all scanned documents, do not overwrite files without the user knowing Might be achieved by appending "_1", "_2", … to the filename when a file with the desired filename already exists. Could also be integreated into the custom pattern builder as a new "counter" variable.
Log data
{"@t":"2024-09-17T09:34:44.0392205Z","@mt":"Requested to move file to folder. [replaceExisting={Replace}]","Replace":true}
This bug was likely introduced due to the practice of Scanner frequently overwriting files in order to add pages or apply other edits. However, before doing all this and before saving the first page of a scan it must be made sure, that there is no file already in the set scan results location, that will be overwritten inadvertently.