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

Path Missing when pausing task after adding from magnet #1496

Open
luchev opened this issue Oct 8, 2018 · 2 comments
Open

Path Missing when pausing task after adding from magnet #1496

luchev opened this issue Oct 8, 2018 · 2 comments

Comments

@luchev
Copy link

luchev commented Oct 8, 2018

App: Version 0.20.0 (0.99.3) (64-bit)
OS: Linux Mint 18.3 Sylvia

I added a torrent from a magnet link and instantly (maybe a fraction of a second) paused it because I wanted to let my other tasks finish first. Later when trying to restart the task it failed with the message:
"Path missing.
Fix and restart the app, or delete the torrent.
Missing path: /home/user/Downloads/filename.ext"

Deleting and re-adding the task without pausing this time downloaded it successfully.
Can we have path rechecking when restarting a task and if it is missing - recreating it?

@stale
Copy link

stale bot commented Jan 6, 2019

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

@stale stale bot added the stale label Jan 6, 2019
@stale stale bot closed this as completed Jan 13, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 13, 2019
@webtorrent webtorrent unlocked this conversation Sep 5, 2019
@feross feross reopened this Sep 5, 2019
@PracticalCode
Copy link

In the file:

  • webtorrent-desktop\src\renderer\lib\torrent-summary.js

... there's the lines:

  1. const dirname = ts.files[0].path.split(path.sep)[0]
  2. return path.join(ts.path, dirname)

... where [path.sep = '\'] which on Windows 10 are causing me the issue... and I don't know what the point of post-pending the drive onto the root path is/was? (perhaps at one point, the individual ts.files[0].path locations were local and needed the root path? but even then, it's not doing that either.?.?)

So, as a temp patch, I replaced lines 1&2 above with the following:

const dirname = ts.files[0].path
return dirname

... until I got some feedback for the original purpose of the code as it's written ... otherwise, I'll submit a PR.

In the interim, perhaps this comment with my temp patch will help someone else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants