protected function mkfile($args) {
		$target = $args['target'];
		$name   = $args['name'];
		
		if (($volume = $this->volume($target)) == false) {
			return array('error' => $this->error(self::ERROR_MKFILE, $name, self::ERROR_TRGDIR_NOT_FOUND, '#'.$target));
		}

		return ($file = $volume->mkfile($target, $args['name'])) == false
			? array('error' => $this->error(self::ERROR_MKFILE, $name, $volume->error()))
			: array('added' => array($file));
	}
protected function mkfile($args) {
		$target = $args['target'];
		$name   = $args['name'];
		
		if (($volume = $this->volume($target)) == false) {
			return array('error' => $this->error(self::ERROR_MKFILE, $name, self::ERROR_TRGDIR_NOT_FOUND, '#'.$target));
		}

		return ($file = $volume->mkfile($target, $args['name'])) == false
			? array('error' => $this->error(self::ERROR_MKFILE, $name, $volume->error()))
			: array('added' => array($file));
	}
protected function mkfile ( $ args ) { $ target = $ args [ 'target' ] ; $ name = $ args [ 'name' ] ; if ( ( $ volume = $ this -> volume ( $ target ) ) == false ) { return array ( 'error' => $ this -> error ( self :: ERROR_MKFILE , $ name , self :: ERROR_TRGDIR_NOT_FOUND , '#' . $ target ) ) ; } return ( $ file = $ volume -> mkfile ( $ target , $ args [ 'name' ] ) ) == false ? array ( 'error' => $ this -> error ( self :: ERROR_MKFILE , $ name , $ volume -> error ( ) ) ) : array ( 'added' => array ( $ file ) ) ; }
Create empty file

@param  array  command arguments
@return array
@author Dmitry (dio) Levashov
Create empty file