Commit 60bc347f authored by Orekav's avatar Orekav Committed by Julien Fontanet

fix(README): correct createWriteStream example (#52)

Fixes #51
parent ae07a60e
......@@ -53,7 +53,7 @@ Example:
```javascript
// load the library
var SMB2 = require('smb2');
var SMB2 = require('@marsaud/smb2');
// create an SMB2 instance
var smb2Client = new SMB2({
......@@ -269,7 +269,7 @@ Returns a write stream on the file.
Example:
```javascript
smb2Client.createWriteStream('path\\to\\the\\file', function(err, readStream) {
smb2Client.createWriteStream('path\\to\\the\\file', function(err, writeStream) {
if (err) throw err;
var readStream = fs.createReadStream('localFile');
readStream.pipe(writeStream);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment