setPermissions

Availability: >= 3.0

Type: Object Method

Description: Provides a quick and easy method for setting the permissions to common settings.

Syntax:

$directory->setPermissionsstring $permissions );

The single parameter should be one of the following values

read-only
Users have read only access.

read-write
Users can upload files.

read-write-modify
Users can upload and modify existing files.

read-write-modify-delete
Users can upload, modify and delete files.

everything
Users have full access.