sboesen / remotely-sync

fork of remotely-save with security upgrades
Apache License 2.0
199 stars 8 forks source link

Fix multiple metadatas issue #135

Closed kadisonm closed 5 months ago

kadisonm commented 5 months ago

Should fix #134 and #131.

I couldn't recreate there being multiple metadata files, but I know I have experienced having multiple before and it causing the sync status to show the older metadata last modified.

This PR should fix it. I split up parseRemoteStates() so that getting the metadata file can be consistent through the whole plugin. I also added a check for multiple metadata files and deletes them leaving the newest.

sboesen commented 5 months ago

Thank you!! merged.