citrix / ShareFile-NET

C# library for accessing ShareFile V3 API
MIT License
36 stars 26 forks source link

ExpirationDate on Folder not being set #26

Open EthernetIp opened 7 years ago

EthernetIp commented 7 years ago

Folder newFolder = new Folder(); newFolder.Name = "somename"; //newFolder.ExpirationDate = DateTime.UtcNow.AddDays(10); newFolder=sfClient.Items.CreateFolder(parentUri, newFolder).Execute();

The above set nothing


Try 2 Folder newFolder = new Folder(); newFolder.Name = newFolderName; newFolder=sfClient.Items.CreateFolder(parentUri, newFolder).Execute();

newFolder.ExpirationDate = DateTime.UtcNow.AddDays(19); sfClient.Items.Update(newFolder.url, newFolder).Execute();

Works, but why cant this be done at creation ?