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

Add 'd.multicall.check.base_path' command #100

Open
pyroscope opened this issue Jun 18, 2018 · 0 comments
Open

Add 'd.multicall.check.base_path' command #100

pyroscope opened this issue Jun 18, 2018 · 0 comments

Comments

@pyroscope
Copy link
Owner

pyroscope commented Jun 18, 2018

d.multicall.check.base_path fires event.download.orphaned when an item's data is gone. Obvious handlers are d.erase, or d.close and maybe also d.views.push_back_unique=orphaned.

Storing the gone base path in session state takes care of firing the event only once, and recovering when the path is fixed in cases where the data was only moved away, not deleted. For that case, a event.download.adopted event might be handy (e.g. scheduling a rehash as a handler).

A different route would be to implement the os.path.* command group, and then do all this in config via normal multicalls.

Also see rakshasa/rtorrent#616

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

1 participant