mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-08 00:42:13 +02:00
Update PR
* Update PR
This commit is contained in:
parent
8431d89412
commit
6c5927d993
15
src/sync.d
15
src/sync.d
|
@ -5661,7 +5661,8 @@ final class SyncEngine
|
|||
return response;
|
||||
}
|
||||
}
|
||||
writeln("done.");
|
||||
// "done."
|
||||
writeln(provideLanguageTranslation(languageIdentifier,170));
|
||||
// Due to https://github.com/OneDrive/onedrive-api-docs/issues/935 Microsoft modifies all PDF, MS Office & HTML files with added XML content. It is a 'feature' of SharePoint.
|
||||
// So - now the 'local' and 'remote' file is technically DIFFERENT ... thanks Microsoft .. NO way to disable this stupidity
|
||||
string uploadNewFileHash;
|
||||
|
@ -5677,14 +5678,18 @@ final class SyncEngine
|
|||
|
||||
if(!uploadOnly){
|
||||
// Download the Microsoft 'modified' file so 'local' is now in sync
|
||||
log.vlog("Due to Microsoft Sharepoint 'enrichment' of files, downloading 'enriched' file to ensure local file is in-sync");
|
||||
log.vlog("See: https://github.com/OneDrive/onedrive-api-docs/issues/935 for further details");
|
||||
// "Due to Microsoft Sharepoint 'enrichment' of files, downloading 'enriched' file to ensure local file is in-sync"
|
||||
log.vlog(provideLanguageTranslation(languageIdentifier,258));
|
||||
// "See: https://github.com/OneDrive/onedrive-api-docs/issues/935 for further details"
|
||||
log.vlog(provideLanguageTranslation(languageIdentifier,259));
|
||||
auto fileSize = response["size"].integer;
|
||||
onedrive.downloadById(response["parentReference"]["driveId"].str, response["id"].str, path, fileSize);
|
||||
} else {
|
||||
// we are not downloading a file, warn that file differences will exist
|
||||
log.vlog("WARNING: Due to Microsoft Sharepoint 'enrichment' of files, this file is now technically different to your local copy");
|
||||
log.vlog("See: https://github.com/OneDrive/onedrive-api-docs/issues/935 for further details");
|
||||
// "WARNING: Due to Microsoft Sharepoint 'enrichment' of files, this file is now technically different to your local copy"
|
||||
log.vlog(provideLanguageTranslation(languageIdentifier,260));
|
||||
// "See: https://github.com/OneDrive/onedrive-api-docs/issues/935 for further details"
|
||||
log.vlog(provideLanguageTranslation(languageIdentifier,259));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -409,7 +409,9 @@ void initialise_EN_AU(){
|
|||
JSONValue([ "255": "Skipping uploading this file as it cannot be read (file permissions or file corruption): " ]),
|
||||
JSONValue([ "256": "Skipping uploading this new file as parent path is not in the database: " ]),
|
||||
JSONValue([ "257": "' due to insufficient free space available on OneDrive" ]),
|
||||
|
||||
JSONValue([ "258": "Due to Microsoft Sharepoint 'enrichment' of files, downloading 'enriched' file to ensure local file is in-sync" ]),
|
||||
JSONValue([ "259": "See: https://github.com/OneDrive/onedrive-api-docs/issues/935 for further details" ]),
|
||||
JSONValue([ "260": "WARNING: Due to Microsoft Sharepoint 'enrichment' of files, this file is now technically different to your local copy" ]),
|
||||
|
||||
|
||||
]);
|
||||
|
|
Loading…
Reference in a new issue