library/Garp/Cli/Command/Permissions.php
public function set(array $args = array()) {
        if (!file_exists('application/data/cache')
            || !file_exists('application/data/logs')
            || !file_exists('public/uploads')
        ) {
            Garp_Cli::lineOut(
                'It looks like there are no directories for me to set permissions on.',
                Garp_Cli::YELLOW
            );
            return true;
        }
        Garp_Cli::lineOut('Setting permissions on writable folders...');
        passthru('chmod -R 777 application/data/cache');
        passthru('chmod -R 777 application/data/logs');
        passthru('chmod -R 777 public/uploads');

        Garp_Cli::lineOut('Done.');
        Garp_Cli::lineOut('');
        return true;
    }
public function set(array $args = array()) {
        if (!file_exists('application/data/cache')
            || !file_exists('application/data/logs')
            || !file_exists('public/uploads')
        ) {
            Garp_Cli::lineOut(
                'It looks like there are no directories for me to set permissions on.',
                Garp_Cli::YELLOW
            );
            return true;
        }
        Garp_Cli::lineOut('Setting permissions on writable folders...');
        passthru('chmod -R 777 application/data/cache');
        passthru('chmod -R 777 application/data/logs');
        passthru('chmod -R 777 public/uploads');

        Garp_Cli::lineOut('Done.');
        Garp_Cli::lineOut('');
        return true;
    }
public function set ( array $ args = array ( ) ) { if ( ! file_exists ( 'application/data/cache' ) || ! file_exists ( 'application/data/logs' ) || ! file_exists ( 'public/uploads' ) ) { Garp_Cli :: lineOut ( 'It looks like there are no directories for me to set permissions on.' , Garp_Cli :: YELLOW ) ; return true ; } Garp_Cli :: lineOut ( 'Setting permissions on writable folders...' ) ; passthru ( 'chmod -R 777 application/data/cache' ) ; passthru ( 'chmod -R 777 application/data/logs' ) ; passthru ( 'chmod -R 777 public/uploads' ) ; Garp_Cli :: lineOut ( 'Done.' ) ; Garp_Cli :: lineOut ( '' ) ; return true ; }
Set permissions on certain folders

@param array $args
@return bool
Set permissions on certain folders