When a directory contains QR codes for multiple files, they are automatically grouped by file_id and each file is restored independently.