Better conflict handling for files imported using a backup
Currently we just add a suffix to recovered siafiles if they share the same siapath with an existing file. This causes issues if the file with the new suffix has the same UID as the existing file. Following changes were proposed to fix this issue:
- If siapath and uid match -> don't import the file
- If only the siapath matches -> generate a new uid for the recovered file and add a suffix
- If the file doesn't exist yet -> import the file without changing it (or maybe generate a new uid anyway?)
Edited by Christopher Schinnerl