Skip to content

Commit

Permalink
Fix typo in how-to/store-directory code snippet (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo authored May 19, 2022
1 parent 133f182 commit eb65633
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/website/pages/docs/how-to/store-directory.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function main() {
console.error(`usage: ${process.argv[0]} ${process.argv[1]} <directory-path>`)
}
const directoryPath = process.argv[2]
const files = await getFilesFromPath(path, {
const files = await getFilesFromPath(directoryPath, {
pathPrefix: path.resolve(directoryPath), // see the note about pathPrefix below
hidden: true // use the default of false if you want to ignore files that start with '.'
})
Expand Down Expand Up @@ -90,4 +90,4 @@ When the upload is complete, the CID and status of the upload will be printed to
[quickstart]: /docs/
[reference-client-js]: /docs/client/lib

[npm-files-from-path]: https://www.npmjs.com/package/files-from-path
[npm-files-from-path]: https://www.npmjs.com/package/files-from-path

0 comments on commit eb65633

Please sign in to comment.