Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upstrange behavior when seeding directories #349
Closed
Comments
feross
added a commit
to webtorrent/create-torrent
that referenced
this issue
Jun 11, 2015
This comment has been minimized.
This comment has been minimized.
|
Thanks for reporting. There was indeed a bug when seeding a directory with one file in it. That's fixed in create-torrent 3.13.0 now. The path property on the file automatically includes the directory name that should be created when saving the file to the filesystem. So, your second example of seeding a directory with two files is actually behaving as expected. Maybe we shouldn't do that, but it's actually expected behavior. If you want to discuss that further, open a new issue. :) |
This comment has been minimized.
This comment has been minimized.
|
Awesome, thanks :) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Seeding a directory with one file in it:
Same script as above
Expected:
Actual:
Seeding a directory with two files in it:
Expected:
Actual: