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

Files duplicated when seeding nested folders #845

Open
dcposch opened this issue Jun 22, 2016 · 0 comments
Open

Files duplicated when seeding nested folders #845

dcposch opened this issue Jun 22, 2016 · 0 comments
Labels
Milestone

Comments

@dcposch
Copy link
Contributor

@dcposch dcposch commented Jun 22, 2016

  • WebTorrent version: 0.95.1

When calling seed() on files in nested folders, I can't find a good way to seed in place. Instead, webtorrent copies all the deeper nested files out to the top level folder.

Example:

client.seed([
  "/Users/dc/Desktop/test-folder/bar.txt",
  "/Users/dc/Desktop/test-folder/foo/yolo.txt",
  "/Users/dc/Desktop/test-folder/foo.txt",
  "/Users/dc/Desktop/test-folder/sintel-subs/sintel.mp4",
  "/Users/dc/Desktop/test-folder/sintel-subs/sintel_de.srt",
  "/Users/dc/Desktop/test-folder/sintel-subs/sintel_en.srt",
  "/Users/dc/Desktop/test-folder/sintel-subs/sintel_en_copy.srt"
],
{
  "announce": [
    "udp://tracker.openbittorrent.com:80",
    "wss://tracker.webtorrent.io"
  ],
  "comment": "",
  "name": "test-folder",
  "path": "/Users/dc/Desktop",
  "private": false
})

This works (sort of), and seeds some of the files in place---the ones directly underneath /Users/dc/Desktop/test-folder. Files in the nested folders get duplicated.

@dcposch dcposch added this to the v1 milestone Sep 20, 2016
@dcposch dcposch changed the title Can't seed nested folders in place Files duplicated when seeding nested folders Sep 20, 2016
@stale stale bot added the stale label May 3, 2018
@stale stale bot removed the stale label May 4, 2018
@webtorrent webtorrent deleted a comment from stale bot May 4, 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.