06-28-2018, 02:51 PM
Johan,
I'm investigating the latest issue you described, but I wanted to say that I've made some significant improvements to the handling of directories when restoring backups. I now try to preserve the directories on Android and Windows 10 that are found in the backup file. There is one caveat for this: the file paths must start with the storage location in order for this to work. Otherwise I don't know which parts of the path to preserve. If you believe that information could be inferred from the file paths, I'm happy to discuss ideas for an algorithm for that. I imagine what may happen is that it could end up creating a larger number of subdirectories under the storage location than is required, so the question is whether that is better or worse than having the file moved to the storage location with a new folder. To test all this, I took your backup file, and changed the storage location that was extracted from the backup file to /storage/[sd card]/Partituren in the debugger, and verified that it recreated all of your original folders. So it works much better than before if you can have one parent folder for everything.
I should mention that the same holds true for synchronizing devices. You either need to have all files under the storage location, or alternatively, you have to set up folder mappings so that each device knows how to recreate the necessary subdirectories.
Thanks,
Mike
I'm investigating the latest issue you described, but I wanted to say that I've made some significant improvements to the handling of directories when restoring backups. I now try to preserve the directories on Android and Windows 10 that are found in the backup file. There is one caveat for this: the file paths must start with the storage location in order for this to work. Otherwise I don't know which parts of the path to preserve. If you believe that information could be inferred from the file paths, I'm happy to discuss ideas for an algorithm for that. I imagine what may happen is that it could end up creating a larger number of subdirectories under the storage location than is required, so the question is whether that is better or worse than having the file moved to the storage location with a new folder. To test all this, I took your backup file, and changed the storage location that was extracted from the backup file to /storage/[sd card]/Partituren in the debugger, and verified that it recreated all of your original folders. So it works much better than before if you can have one parent folder for everything.
I should mention that the same holds true for synchronizing devices. You either need to have all files under the storage location, or alternatively, you have to set up folder mappings so that each device knows how to recreate the necessary subdirectories.
Thanks,
Mike