{"action":"created","issue":{"url":"https://api.github.com/repos/webtorrent/webtorrent/issues/1417","repository_url":"https://api.github.com/repos/webtorrent/webtorrent","labels_url":"https://api.github.com/repos/webtorrent/webtorrent/issues/1417/labels{/name}","comments_url":"https://api.github.com/repos/webtorrent/webtorrent/issues/1417/comments","events_url":"https://api.github.com/repos/webtorrent/webtorrent/issues/1417/events","html_url":"https://github.com/webtorrent/webtorrent/issues/1417","id":332226470,"node_id":"MDU6SXNzdWUzMzIyMjY0NzA=","number":1417,"title":"Errors when creating and seeding a torrent","user":{"login":"ahundt","id":55744,"node_id":"MDQ6VXNlcjU1NzQ0","avatar_url":"https://avatars1.githubusercontent.com/u/55744?v=4","gravatar_id":"","url":"https://api.github.com/users/ahundt","html_url":"https://github.com/ahundt","followers_url":"https://api.github.com/users/ahundt/followers","following_url":"https://api.github.com/users/ahundt/following{/other_user}","gists_url":"https://api.github.com/users/ahundt/gists{/gist_id}","starred_url":"https://api.github.com/users/ahundt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahundt/subscriptions","organizations_url":"https://api.github.com/users/ahundt/orgs","repos_url":"https://api.github.com/users/ahundt/repos","events_url":"https://api.github.com/users/ahundt/events{/privacy}","received_events_url":"https://api.github.com/users/ahundt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-06-14T02:11:55Z","updated_at":"2018-09-13T03:17:16Z","closed_at":null,"author_association":"NONE","body":"Four Questions Below\r\n\r\n**What version of WebTorrent?**\r\nwebtorrent --version\r\n1.12.3 (0.100.0)\r\n\r\n**What operating system and Node.js version?**\r\nnpm --version\r\n5.6.0\r\n\r\nnode --version\r\nv10.1.0\r\n\r\nUbuntu 14.04\r\n\r\n**What browser and version? (if using WebTorrent in the browser)**\r\n\r\nn/a I'm using cli/desktop\r\n\r\n**What did you expect to happen?**\r\n\r\nI ran:\r\n\r\n```\r\nwebtorrent create ~/dataset -o ~/dataset.torrent\r\n```\r\nwhere ~/dataset is a folder containing 8k files totaling about 220GB of data with all of the files varying from 0KB to 50MB (most common) up to 180MB (the largest) it created the `.torrent` file and the contents looked reasonable.\r\n\r\nI only have 700MB of hard disk space left so I cannot torrent a second copy of the data.\r\n\r\nWhen I tried dropping the `.torrent` file it appeared to start copying all of the data, which I don't have th e space for. I tried to run `ln -s ~/dataset ~/Downloads/dataset` because it looked like that was the directory specified in webtorrent desktop but to no avail.\r\n\r\n1. **How can I make sure it locates the already existing data and does not re-download it?**\r\n\r\nI then tried to seed the data manually with:\r\n\r\n```\r\nwebtorrent seed ~/dataset.torrent\r\n```\r\nThis appeared to walk through the dataset, but when it finally got to seeding it said only a small fraction of the data was already present.\r\n\r\n**What actually happened?**\r\n\r\nI expected a torrent to be created and seeded without re-downloading data in a local folder. The data started re-downloading, and when I tried another approach to seeding it didn't appear to find all the local data on disk.\r\n\r\n2. **How do I specify both the torrent to seed and the location of the data to seed?**\r\n\r\nThere is not really a clear way to specify both a torrent file and data location on either the CLI and the desktop client. Help in these matters would be greatly appreciated!\r\n\r\nConsidering the errors above, I've become concerned about possible data loss having occurred.\r\n\r\n3. **How do I make sure my existing files weren't / aren't accidentally blasted away or overwritten by the seeding/downloading process?**\r\n\r\n4. **When I specify a folder to seed and a folder to download, how do I ensure the folder paths match?**\r\n\r\nIn other words, if I say `~/dataset` is where I want to download, it may download to `~/dataset/dataset` and thus try to download all the data a second time. This ambiguity isn't very clear."},"comment":{"url":"https://api.github.com/repos/webtorrent/webtorrent/issues/comments/420870040","html_url":"https://github.com/webtorrent/webtorrent/issues/1417#issuecomment-420870040","issue_url":"https://api.github.com/repos/webtorrent/webtorrent/issues/1417","id":420870040,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDg3MDA0MA==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-09-13T03:17:16Z","updated_at":"2018-09-13T03:17:16Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.\n"}}
{"actor":{"display_login":"stale"}}