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

Incorrect path encoding when passing array of strings #983

Open
mikeal opened this issue Nov 22, 2016 · 1 comment
Open

Incorrect path encoding when passing array of strings #983

mikeal opened this issue Nov 22, 2016 · 1 comment
Labels

Comments

@mikeal
Copy link
Contributor

@mikeal mikeal commented Nov 22, 2016

let webtorrent = require('webtorrent')()
let files = ['index.html', 'package.json']

webtorrent.seed(files, torrent => {
  console.log(torrent.files[0].path, torrent.files[0].path)
})
index.html/index.html index.html/index.html

As you can see, the first filename is encoded as the base folder which is quite odd. I've tried making the file references './index.html' and './package.json' but nothing seems to change it.

  • WebTorrent version: 0.97.2
  • Node.js version: v6
  • Browser name/version (if using WebTorrent in the browser): none.
@stale

This comment has been minimized.

Copy link

@stale stale bot commented May 3, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label May 3, 2018
@feross feross added accepted bug and removed stale labels May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.