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

Make torrent path public #409

Closed
Stiveknx opened this issue Aug 25, 2015 · 1 comment
Closed

Make torrent path public #409

Stiveknx opened this issue Aug 25, 2015 · 1 comment

Comments

@Stiveknx
Copy link
Contributor

@Stiveknx Stiveknx commented Aug 25, 2015

Is possible to get torrent path after add it?

Some variable like torrent.path or torrent.download_location?

When I add a torrent from command line, default path is current dir, default path is /tmp/webtorrent, I also can add my custom path when using torrent.add.
I know that file.path has the file location, but I would need to get some file and search it's path ...

That's useful when downloading using node!

@Stiveknx

This comment has been minimized.

Copy link
Contributor Author

@Stiveknx Stiveknx commented Aug 25, 2015

Never mind, I can access using torrent._path.
But I think that "_path" is more like a "private" object and shouldn't be accessed that way, right?

I created this pull request to add torrent.path:
#410

@Stiveknx Stiveknx closed this Aug 25, 2015
@feross feross changed the title Get torrent Path? Make torrent path public Aug 28, 2015
@feross feross reopened this Aug 28, 2015
@feross feross closed this in 0910056 Aug 28, 2015
@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.