Update to pkg/backup/details.details.go
Issue #2709: Item Type extended to the three categories supported within SharePoint.
This commit is contained in:
parent
0add271ebc
commit
6bcc85a7f3
@ -403,7 +403,9 @@ const (
|
|||||||
ExchangeEvent
|
ExchangeEvent
|
||||||
ExchangeMail
|
ExchangeMail
|
||||||
|
|
||||||
SharePointItem ItemType = iota + 100
|
SharePointLibrary ItemType = iota + 100
|
||||||
|
SharePointList ItemType = iota + 100
|
||||||
|
SharePointPage ItemType = iota + 100
|
||||||
|
|
||||||
OneDriveItem ItemType = iota + 200
|
OneDriveItem ItemType = iota + 200
|
||||||
|
|
||||||
@ -416,7 +418,7 @@ func UpdateItem(item *ItemInfo, repoPath path.Path) error {
|
|||||||
var updatePath func(path.Path) error
|
var updatePath func(path.Path) error
|
||||||
|
|
||||||
switch item.infoType() {
|
switch item.infoType() {
|
||||||
case SharePointItem:
|
case SharePointLibrary:
|
||||||
updatePath = item.SharePoint.UpdateParentPath
|
updatePath = item.SharePoint.UpdateParentPath
|
||||||
case OneDriveItem:
|
case OneDriveItem:
|
||||||
updatePath = item.OneDrive.UpdateParentPath
|
updatePath = item.OneDrive.UpdateParentPath
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user