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

Duplicate paths should not be allowed #126

Open
jhiesey opened this issue May 17, 2021 · 0 comments
Open

Duplicate paths should not be allowed #126

jhiesey opened this issue May 17, 2021 · 0 comments
Labels

Comments

@jhiesey
Copy link
Contributor

jhiesey commented May 17, 2021

What version of this package are you using?
4.7.0

What operating system, Node.js, and npm version?

What happened?

When createTorrent is passed an array of files, where multiple files have the exact same name or fullPath values, it will create a torrent containing multiple identical paths.

Such a torrent with duplicate paths in it is not valid, so createTorrent should call the callback with an error.

What did you expect to happen?

Are you willing to submit a pull request to fix this bug?

@jhiesey jhiesey added the bug label May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant