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

How to specify files exist on my disk to be uploaded? #374

Closed
major1201 opened this issue Jan 27, 2020 · 2 comments
Closed

How to specify files exist on my disk to be uploaded? #374

major1201 opened this issue Jan 27, 2020 · 2 comments

Comments

@major1201
Copy link

Hi:

I have no idea how to link my torrent file with the files downloaded(or maybe I'm the first one to seed) to be uploaded.

I haven't found such usage, please help.

@major1201
Copy link
Author

Just set the DataDir of the ClientConfig:

cc := torrent.NewDefaultClientConfig()
cc.DataDir = "/my/serving/dir"

@anacrolix
Copy link
Owner

Thanks for following up your own question.

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

No branches or pull requests

2 participants