framework/cli/commands/WebAppCommand.php
protected function setPermissions($targetDir)
	{
		@chmod($targetDir.'/assets',0777);
		@chmod($targetDir.'/protected/runtime',0777);
		@chmod($targetDir.'/protected/data',0777);
		@chmod($targetDir.'/protected/data/testdrive.db',0777);
		@chmod($targetDir.'/protected/yiic',0755);
	}
protected function setPermissions($targetDir)
	{
		@chmod($targetDir.'/assets',0777);
		@chmod($targetDir.'/protected/runtime',0777);
		@chmod($targetDir.'/protected/data',0777);
		@chmod($targetDir.'/protected/data/testdrive.db',0777);
		@chmod($targetDir.'/protected/yiic',0755);
	}
protected function setPermissions ( $ targetDir ) { @ chmod ( $ targetDir . '/assets' , 0777 ) ; @ chmod ( $ targetDir . '/protected/runtime' , 0777 ) ; @ chmod ( $ targetDir . '/protected/data' , 0777 ) ; @ chmod ( $ targetDir . '/protected/data/testdrive.db' , 0777 ) ; @ chmod ( $ targetDir . '/protected/yiic' , 0755 ) ; }
Adjusts created application file and directory permissions

@param string $targetDir path to created application
Adjusts created application file and directory permissions