mirror of
https://github.com/abraunegg/onedrive
synced 2026-03-14 14:35:46 +01:00
Calculate computedItemPath when required
* Calculate computedItemPath when required for Business Accounts and not before
This commit is contained in:
parent
768846a5dd
commit
68b61bef94
1 changed files with 4 additions and 3 deletions
|
|
@ -1919,15 +1919,16 @@ class SyncEngine {
|
|||
|
||||
// Calculate the path of this JSON item, but we can only do this if the parent is in the database
|
||||
if (parentInDatabase) {
|
||||
// Calculate this items path
|
||||
computedItemPath = computeItemPath(thisItemDriveId, thisItemParentId);
|
||||
|
||||
// Use the original method of calculation for Personal Accounts
|
||||
if (appConfig.accountType == "personal") {
|
||||
// Personal Accounts
|
||||
// Calculate this items path
|
||||
newItemPath = computeItemPath(thisItemDriveId, thisItemParentId) ~ "/" ~ thisItemName;
|
||||
} else {
|
||||
// Business Accounts
|
||||
// Calculate this items path for business accounts
|
||||
computedItemPath = computeItemPath(thisItemDriveId, thisItemParentId);
|
||||
|
||||
// is 'thisItemParentId' in the DB as a 'root' object?
|
||||
Item databaseItem;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue