egnyte / egnyte-dotnet

.NET SDK for the Egnyte Public API
5 stars 17 forks source link

A way to set folder options? #7

Closed jeliss closed 6 years ago

jeliss commented 6 years ago

Is there a way in the SDK to set the folder description, public links, restrict move / delete and email preferences found on: https://developers.egnyte.com/docs/read/Folder_Options_API

Regards John

mikuam commented 6 years ago

Hi @jeliss, There's no way to do it now, but I'll implement it probably till the end of the week. Be patient.

Regards, Michał

mikuam commented 6 years ago

Hi again @jeliss , New package that supports folder options is ready. It has version 1.15 and you can download it from nuget.

Usage can look like this: var listing = await client.Files.UpdateFolder( "Shared/MyFolder", folderDescription: "This is new description set up at: " + DateTime.Now, publicLinks: PublicLinksType.Files, restrictMoveDelete: true, emailPreferences: "{\"content_updates\": false, \"content_accessed\":true}");

Let me know if that works for you.

Regards, Michał

jeliss commented 6 years ago

Thank you sir. I'll give it a shot.

mikuam commented 6 years ago

Issue seems to be fixed, I'm closing it @jeliss .