{"_id":"57ee5af7c96f3019006f84e3","project":"56b86cc286d2b0190070bcda","__v":0,"githubsync":"","version":{"_id":"573ed4bea233380e005db14d","__v":2,"project":"56b86cc286d2b0190070bcda","createdAt":"2016-05-20T09:11:26.847Z","releaseDate":"2016-05-20T09:11:26.847Z","categories":["573ed4bea233380e005db14e","573ed4bea233380e005db14f","573ed4bea233380e005db150","578bcf36bb7d810e00e01c05"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"master","version_clean":"0.3.0-0.4","version":"0.3-0.4"},"parentDoc":null,"category":{"_id":"573ed4bea233380e005db14f","__v":0,"version":"573ed4bea233380e005db14d","project":"56b86cc286d2b0190070bcda","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-02-08T11:20:51.134Z","from_sync":false,"order":1,"slug":"tasks","title":"Tasks"},"user":"56b86c990094520d006b3c33","updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-09-30T12:30:47.579Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":4,"body":"Updates the permissions of the configured files and directories.\n\n## Configuration options\n\n| Name | Type | Default value | Description |\n|------|------|---------------|-------------|\n| paths | array |  | The paths for which you want to update the permissions. |\n\n### Configure the permissions for directories\nExample configuration:\n```json\n{\n    \"class\": \"Accompli\\\\Task\\\\FilePermissionTask\",\n    \"paths\": {\n        \"directory/within/release\": {\n            \"recursive\": true,\n            \"permissions\": \"-rwxrwx---\"\n        },\n        \"another/directory/within/release\": {\n            \"recursive\": true,\n            \"permissions\": \"-rwxrwxrwx\"\n        }\n    }\n}\n```\n\nFor every directory permissions can be set by adding a permissions key to the configured path. Several variations for the value are:\n`-rwx`, `rwxrwx`, `-rwxrwxr`. The `-` at the beginning is optional, so are the rest of the characters at the end.\n\nConfiguring `-rwx` will result in setting the following permissions `-rwx------`. It is advisable to configure the full 10 characters because this makes it easier for others to understand which permissions are set.\n\n### Configure recursiveness\nIt's also possible to set the permissions for all subdirectories of the configured path by setting the key `recursive` to true. This configuration setting is optional and can be omitted when false.\n\n# Event flow\n[block:image]\n{\n  \"images\": [\n    {\n      \"image\": [\n        \"https://files.readme.io/b3b15e0-FilePermissionTask.png\",\n        \"FilePermissionTask.png\",\n        884,\n        454,\n        \"#dadad9\"\n      ]\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"filepermissiontask","type":"basic","title":"FilePermissionTask"}

FilePermissionTask


Updates the permissions of the configured files and directories. ## Configuration options | Name | Type | Default value | Description | |------|------|---------------|-------------| | paths | array | | The paths for which you want to update the permissions. | ### Configure the permissions for directories Example configuration: ```json { "class": "Accompli\\Task\\FilePermissionTask", "paths": { "directory/within/release": { "recursive": true, "permissions": "-rwxrwx---" }, "another/directory/within/release": { "recursive": true, "permissions": "-rwxrwxrwx" } } } ``` For every directory permissions can be set by adding a permissions key to the configured path. Several variations for the value are: `-rwx`, `rwxrwx`, `-rwxrwxr`. The `-` at the beginning is optional, so are the rest of the characters at the end. Configuring `-rwx` will result in setting the following permissions `-rwx------`. It is advisable to configure the full 10 characters because this makes it easier for others to understand which permissions are set. ### Configure recursiveness It's also possible to set the permissions for all subdirectories of the configured path by setting the key `recursive` to true. This configuration setting is optional and can be omitted when false. # Event flow [block:image] { "images": [ { "image": [ "https://files.readme.io/b3b15e0-FilePermissionTask.png", "FilePermissionTask.png", 884, 454, "#dadad9" ] } ] } [/block]