SetPermission Method
Assigns the given permission to a resource.
Syntax
public func setPermission(path: String, permission: String) throws -> Void
Remarks
This method assigns the given Permission to the resource at Path.
Permission must be formatted as an octal permission string. If Permission is empty string, the resource's permission will be reset to the server default (755).