public function appendContents($path, $content)
    {
        return $this->invoker->invokeCall('putContents', [
            'path' => $path,
            'chunk' => base64_encode($content),
            'flags' => FILE_APPEND,
        ])->then(function ($payload) {
            return \React\Promise\resolve($payload['written']);
        });
    }
public function appendContents($path, $content)
    {
        return $this->invoker->invokeCall('putContents', [
            'path' => $path,
            'chunk' => base64_encode($content),
            'flags' => FILE_APPEND,
        ])->then(function ($payload) {
            return \React\Promise\resolve($payload['written']);
        });
    }
public function appendContents ( $ path , $ content ) { return $ this -> invoker -> invokeCall ( 'putContents' , [ 'path' => $ path , 'chunk' => base64_encode ( $ content ) , 'flags' => FILE_APPEND , ] ) -> then ( function ( $ payload ) { return \ React \ Promise \ resolve ( $ payload [ 'written' ] ) ; } ) ; }
Appends the given content to the specified file.
If the file does not exist, the file will be created.

This is an optimization for adapters which can optimize
the open -> write -> close sequence into one call.

@param string $path
@param string $content
@return PromiseInterface
@see AdapterInterface::putContents()
Appends the given content to the specified file . If the file does not exist the file will be created .