-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added
RenameFolder
methods on IFolder
to make it easier to rename…
… a folder #1080
- Loading branch information
Showing
12 changed files
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...sdk/PnP.Core.Test/SharePoint/MockData/FoldersTests/RenameFolderTest-0-00000.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"ae6d90a0-c034-6000-1002-9f592fc18612","SPClientServiceRequestDuration":"155","X-SharePointHealthScore":"2","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022RegionalSettings\u0022:{\u0022TimeZone\u0022:{\u0022Description\u0022:\u0022(UTC-08:00) Pacific Time (US and Canada)\u0022,\u0022Id\u0022:13,\u0022Information\u0022:{\u0022Bias\u0022:480,\u0022DaylightBias\u0022:-60,\u0022StandardBias\u0022:0}},\u0022AdjustHijriDays\u0022:0,\u0022AlternateCalendarType\u0022:0,\u0022AM\u0022:\u0022AM\u0022,\u0022CalendarType\u0022:1,\u0022Collation\u0022:25,\u0022CollationLCID\u0022:2070,\u0022DateFormat\u0022:0,\u0022DateSeparator\u0022:\u0022/\u0022,\u0022DecimalSeparator\u0022:\u0022.\u0022,\u0022DigitGrouping\u0022:\u00223;0\u0022,\u0022FirstDayOfWeek\u0022:0,\u0022FirstWeekOfYear\u0022:0,\u0022IsEastAsia\u0022:false,\u0022IsRightToLeft\u0022:false,\u0022IsUIRightToLeft\u0022:false,\u0022ListSeparator\u0022:\u0022,\u0022,\u0022LocaleId\u0022:1033,\u0022NegativeSign\u0022:\u0022-\u0022,\u0022NegNumberMode\u0022:1,\u0022PM\u0022:\u0022PM\u0022,\u0022PositiveSign\u0022:\u0022\u0022,\u0022ShowWeeks\u0022:false,\u0022ThousandSeparator\u0022:\u0022,\u0022,\u0022Time24\u0022:false,\u0022TimeMarkerPosition\u0022:0,\u0022TimeSeparator\u0022:\u0022:\u0022,\u0022WorkDayEndHour\u0022:1020,\u0022WorkDays\u0022:62,\u0022WorkDayStartHour\u0022:480},\u0022Id\u0022:\u00222c99a486-d6c9-4a4b-8d6f-a9faa364c92c\u0022,\u0022Url\u0022:\u0022https://bertonline.sharepoint.com/sites/prov-2\u0022}"} |
1 change: 1 addition & 0 deletions
1
...sdk/PnP.Core.Test/SharePoint/MockData/FoldersTests/RenameFolderTest-0-00001.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"ae6d90a0-7053-6000-1002-90f98bf4fbdc","SPClientServiceRequestDuration":"9","X-SharePointHealthScore":"0","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022GroupId\u0022:\u0022d40d729b-df60-4b57-ac8f-102595090e0a\u0022,\u0022Id\u0022:\u0022f92f9e40-1110-43ef-aa0e-0822e13fb7ba\u0022}"} |
1 change: 1 addition & 0 deletions
1
...sdk/PnP.Core.Test/SharePoint/MockData/FoldersTests/RenameFolderTest-0-00002.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"ae6d90a0-505a-6000-1002-921ef828acbb","SPClientServiceRequestDuration":"13","X-SharePointHealthScore":"1","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022RootFolder\u0022:{\u0022Exists\u0022:true,\u0022IsWOPIEnabled\u0022:false,\u0022ItemCount\u0022:2,\u0022Name\u0022:\u0022SitePages\u0022,\u0022ProgID\u0022:null,\u0022ServerRelativeUrl\u0022:\u0022/sites/prov-2/SitePages\u0022,\u0022TimeCreated\u0022:\u00222021-09-11T23:42:33Z\u0022,\u0022TimeLastModified\u0022:\u00222023-01-27T19:19:08Z\u0022,\u0022UniqueId\u0022:\u0022714761dc-83f7-428a-ae9b-7801d9c4d235\u0022,\u0022WelcomePage\u0022:\u0022\u0022},\u0022Id\u0022:\u0022874451ce-e1b4-4c46-85fd-a6fb0298e1a0\u0022}"} |
1 change: 1 addition & 0 deletions
1
...sdk/PnP.Core.Test/SharePoint/MockData/FoldersTests/RenameFolderTest-0-00003.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"IsSuccessStatusCode":false,"StatusCode":404,"Headers":{"SPRequestGuid":"ae6d90a0-d062-6000-1002-91e64acc499e","SPClientServiceRequestDuration":"17","X-SharePointHealthScore":"0","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022odata.error\u0022:{\u0022code\u0022:\u0022-2147024894, System.IO.FileNotFoundException\u0022,\u0022message\u0022:{\u0022lang\u0022:\u0022en-US\u0022,\u0022value\u0022:\u0022File Not Found.\u0022}}}"} |
1 change: 1 addition & 0 deletions
1
...sdk/PnP.Core.Test/SharePoint/MockData/FoldersTests/RenameFolderTest-0-00004.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"ae6d90a0-107a-6000-1002-92462dd9cd0f","SPClientServiceRequestDuration":"57","X-SharePointHealthScore":"2","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022Exists\u0022:true,\u0022IsWOPIEnabled\u0022:false,\u0022ItemCount\u0022:0,\u0022Name\u0022:\u0022sub1\u0022,\u0022ProgID\u0022:null,\u0022ServerRelativeUrl\u0022:\u0022/sites/prov-2/SitePages/sub1\u0022,\u0022TimeCreated\u0022:\u00222023-01-27T19:22:06Z\u0022,\u0022TimeLastModified\u0022:\u00222023-01-27T19:22:06Z\u0022,\u0022UniqueId\u0022:\u0022fdfe1e85-4689-4602-8b3d-ec785effe137\u0022,\u0022WelcomePage\u0022:\u0022\u0022}"} |
1 change: 1 addition & 0 deletions
1
...sdk/PnP.Core.Test/SharePoint/MockData/FoldersTests/RenameFolderTest-0-00005.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"Cache-Control":"no-store, no-cache","Transfer-Encoding":"chunked","Vary":"Accept-Encoding","Strict-Transport-Security":"max-age=31536000","request-id":"5e8b4976-d39a-49d6-9356-4287b553636e","client-request-id":"5e8b4976-d39a-49d6-9356-4287b553636e","x-ms-ags-diagnostic":"{\u0022ServerInfo\u0022:{\u0022DataCenter\u0022:\u0022North Europe\u0022,\u0022Slice\u0022:\u0022E\u0022,\u0022Ring\u0022:\u00224\u0022,\u0022ScaleUnit\u0022:\u0022000\u0022,\u0022RoleInstance\u0022:\u0022DU6PEPF00002DB7\u0022}}","OData-Version":"4.0","Date":"Fri, 27 Jan 2023 19:22:10 GMT"},"Response":"{\[email protected]\u0022:\u0022https://graph.microsoft.com/v1.0/$metadata#sites(\u0027f92f9e40-1110-43ef-aa0e-0822e13fb7ba\u0027)/drives(\u0027b%21QJ4v-RAR70OqDggi4T-3uoakmSzJ1ktKjW-p-qNkySzOUUSHtOFGTIX9pvsCmOGg\u0027)/items/$entity\u0022,\u0022createdDateTime\u0022:\u00222023-01-27T19:22:06Z\u0022,\u0022eTag\u0022:\u0022\\\u0022{FDFE1E85-4689-4602-8B3D-EC785EFFE137},2\\\u0022\u0022,\u0022id\u0022:\u002201O2ADSGMFD37P3CKGAJDIWPPMPBPP7YJX\u0022,\u0022lastModifiedDateTime\u0022:\u00222023-01-27T19:22:11Z\u0022,\u0022name\u0022:\u0022newsub1\u0022,\u0022webUrl\u0022:\u0022https://bertonline.sharepoint.com/sites/prov-2/SitePages/newsub1\u0022,\u0022cTag\u0022:\u0022\\\u0022c:{FDFE1E85-4689-4602-8B3D-EC785EFFE137},0\\\u0022\u0022,\u0022size\u0022:\u00220\u0022,\u0022createdBy\u0022:{\u0022application\u0022:{\u0022id\u0022:\u0022c545f9ce-1c11-440b-812b-0b35217d9e83\u0022,\u0022displayName\u0022:\u0022PnpCoreTestApp\u0022},\u0022user\u0022:{\u0022email\u0022:\[email protected]\u0022,\u0022id\u0022:\u002233aca310-a489-4121-b853-663d0327fe08\u0022,\u0022displayName\u0022:\u0022Bert Jansen (Cloud)\u0022}},\u0022lastModifiedBy\u0022:{\u0022application\u0022:{\u0022id\u0022:\u0022c545f9ce-1c11-440b-812b-0b35217d9e83\u0022,\u0022displayName\u0022:\u0022PnpCoreTestApp\u0022},\u0022user\u0022:{\u0022email\u0022:\[email protected]\u0022,\u0022id\u0022:\u002233aca310-a489-4121-b853-663d0327fe08\u0022,\u0022displayName\u0022:\u0022Bert Jansen (Cloud)\u0022}},\u0022parentReference\u0022:{\u0022driveType\u0022:\u0022documentLibrary\u0022,\u0022driveId\u0022:\u0022b!QJ4v-RAR70OqDggi4T-3uoakmSzJ1ktKjW-p-qNkySzOUUSHtOFGTIX9pvsCmOGg\u0022,\u0022id\u0022:\u002201O2ADSGN6Y2GOVW7725BZO354PWSELRRZ\u0022,\u0022path\u0022:\u0022/drives/b!QJ4v-RAR70OqDggi4T-3uoakmSzJ1ktKjW-p-qNkySzOUUSHtOFGTIX9pvsCmOGg/root:\u0022},\u0022fileSystemInfo\u0022:{\u0022createdDateTime\u0022:\u00222023-01-27T19:22:06Z\u0022,\u0022lastModifiedDateTime\u0022:\u00222023-01-27T19:22:11Z\u0022},\u0022folder\u0022:{\u0022childCount\u0022:0}}"} |
1 change: 1 addition & 0 deletions
1
...sdk/PnP.Core.Test/SharePoint/MockData/FoldersTests/RenameFolderTest-0-00006.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"b26d90a0-5011-6000-2d7c-0f79af7cdcce","SPClientServiceRequestDuration":"12","X-SharePointHealthScore":"2","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":"{\u0022Exists\u0022:true,\u0022IsWOPIEnabled\u0022:false,\u0022ItemCount\u0022:0,\u0022Name\u0022:\u0022newsub1\u0022,\u0022ProgID\u0022:null,\u0022ServerRelativeUrl\u0022:\u0022/sites/prov-2/SitePages/newsub1\u0022,\u0022TimeCreated\u0022:\u00222023-01-27T19:22:06Z\u0022,\u0022TimeLastModified\u0022:\u00222023-01-27T19:22:11Z\u0022,\u0022UniqueId\u0022:\u0022fdfe1e85-4689-4602-8b3d-ec785effe137\u0022,\u0022WelcomePage\u0022:\u0022\u0022}"} |
1 change: 1 addition & 0 deletions
1
...sdk/PnP.Core.Test/SharePoint/MockData/FoldersTests/RenameFolderTest-0-00007.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"IsSuccessStatusCode":true,"StatusCode":200,"Headers":{"SPRequestGuid":"b26d90a0-101a-6000-1002-9c343df36bd7","SPClientServiceRequestDuration":"136","X-SharePointHealthScore":"3","X-SP-SERVERSTATE":"ReadOnly=0"},"Response":""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters