Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing append to file #54

Closed
ivanmtw opened this issue Dec 24, 2018 · 1 comment
Closed

Missing append to file #54

ivanmtw opened this issue Dec 24, 2018 · 1 comment

Comments

@ivanmtw
Copy link

ivanmtw commented Dec 24, 2018

Trying write content to existing file, flags 'a' and 'w' so similar, and any write clear previously saved data:

$file = $filesystem->file($tsv_filename);
$file->open('ca')->then(function (React\Stream\WritableStreamInterface $stream) use ($tsv_data) {
$stream->write(implode("\t", $tsv_data) . "\n");
$stream->end();
echo "Data was written\n";
});

Apologize no file append functionality in reactphp/filesystem, please add it, thx.

@clue
Copy link
Member

clue commented Feb 11, 2020

Resolved via #62. See appendContents().

@clue clue closed this as completed Feb 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants