Skip to content

Commit

Permalink
docs: fix typo for realPath
Browse files Browse the repository at this point in the history
  • Loading branch information
maitrungduc1410 committed Dec 13, 2020
1 parent e9ea319 commit 8e72c49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ scp({
// privateKey: fs.readFileSync('./key.pem'),
// passphrase: 'your key passphrase',
}).then(client => {
client.realpath('/server/path')
client.realPath('/server/path')
.then(result => {
console.log(result)
client.close() // remember to close connection after you finish
Expand All @@ -432,7 +432,7 @@ async function test() {
// privateKey: fs.readFileSync('./key.pem'),
// passphrase: 'your key passphrase',
})
cosnt result = await client.realpath('/server/path')
cosnt result = await client.realPath('/server/path')
console.log(result)
client.close() // remember to close connection after you finish
} catch (e) {
Expand Down

0 comments on commit 8e72c49

Please sign in to comment.