Tasks.php
/**
     * 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.
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.



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