Tasks.php
public function fructifyPermissions()
    {
        // These folders will be given full write permissions
        $folders =
        [
            './wp-content/uploads'
        ];

        // Loop through each folder
        foreach ($folders as $folder)
        {
            $this->taskFileSystemStack()
                ->mkdir($folder)
                ->chmod($folder, 0777)
            ->run();
        }
    }
public function fructifyPermissions()
    {
        // These folders will be given full write permissions
        $folders =
        [
            './wp-content/uploads'
        ];

        // Loop through each folder
        foreach ($folders as $folder)
        {
            $this->taskFileSystemStack()
                ->mkdir($folder)
                ->chmod($folder, 0777)
            ->run();
        }
    }
public function fructifyPermissions ( ) { // These folders will be given full write permissions $ folders = [ './wp-content/uploads' ] ; // Loop through each folder foreach ( $ folders as $ folder ) { $ this -> taskFileSystemStack ( ) -> mkdir ( $ folder ) -> chmod ( $ folder , 0777 ) -> run ( ) ; } }
Sets permissions on "special" Wordpress folders.

This task simply loops through some folders and ensures they exist and
have the correct permissions. It is automatically run by composer as a
post-install-cmd so you really shouldn't need to worry about it.

But if you do want to call it, usage would look like:

```
./robo fructify:permissions
```

@return void
Sets permissions on special Wordpress folders .