src/FS/File/Editor.php
public function rename( $fileName )
	{
		if( !$fileName )
			throw new InvalidArgumentException( 'No File Name given.' );
		$result	= @rename( $this->fileName, $fileName );
		if( $result === FALSE )
			throw new RuntimeException( 'File "'.$this->fileName.'" could not been renamed.' );
		$this->__construct( $fileName );
		return $result;
	}
public function rename( $fileName )
	{
		if( !$fileName )
			throw new InvalidArgumentException( 'No File Name given.' );
		$result	= @rename( $this->fileName, $fileName );
		if( $result === FALSE )
			throw new RuntimeException( 'File "'.$this->fileName.'" could not been renamed.' );
		$this->__construct( $fileName );
		return $result;
	}
public function rename ( $ fileName ) { if ( ! $ fileName ) throw new InvalidArgumentException ( 'No File Name given.' ) ; $ result = @ rename ( $ this -> fileName , $ fileName ) ; if ( $ result === FALSE ) throw new RuntimeException ( 'File "' . $ this -> fileName . '" could not been renamed.' ) ; $ this -> __construct ( $ fileName ) ; return $ result ; }
Renames current File.
@access		public
@param		string		$fileName		File Name to rename to
@return		bool
Renames current File .