public static function changeFilePermissions($filename, $mode = 0644)
    {

        // make the passed filename OS compliant
        $toBeChanged = Setup::prepareOsSpecificPath($filename);

        // change the mode, if we're not on Windows
        if (SetupKeys::OS_FAMILY_WINDOWS !== strtolower(php_uname('s'))) {
            chmod($toBeChanged, $mode);
        }
    }
public static function changeFilePermissions($filename, $mode = 0644)
    {

        // make the passed filename OS compliant
        $toBeChanged = Setup::prepareOsSpecificPath($filename);

        // change the mode, if we're not on Windows
        if (SetupKeys::OS_FAMILY_WINDOWS !== strtolower(php_uname('s'))) {
            chmod($toBeChanged, $mode);
        }
    }
public static function changeFilePermissions ( $ filename , $ mode = 0644 ) { // make the passed filename OS compliant $ toBeChanged = Setup :: prepareOsSpecificPath ( $ filename ) ; // change the mode, if we're not on Windows if ( SetupKeys :: OS_FAMILY_WINDOWS !== strtolower ( php_uname ( 's' ) ) ) { chmod ( $ toBeChanged , $ mode ) ; } }
Sets the passed mode for the file if NOT on Windows.

@param string  $filename The filename to set the mode for
@param integer $mode     The mode to set

@return void
Sets the passed mode for the file if NOT on Windows .