Feature description
Pooling the FS is not the best way to wait for a file or discover when the download fails.
Would be nice if termux-download had a --onerror and --onsuccess parameters to set a command to run on background, like --action from termux-notification.
Background informationHave you checked if the feature is accessible through the android API?
I believe this means yes.
Do you know of other open-source apps that has a similar feature as the one you want? (Provide links)Node.js's standard HTTP client and other unblocking implementations.
Feature description Pooling the FS is not the best way to wait for a file or discover when the download fails.
Would be nice if
termux-download
had a--onerror
and--onsuccess
parameters to set a command to run on background, like--action
fromtermux-notification
.Background information Have you checked if the feature is accessible through the android API? I believe this means yes.
Do you know of other open-source apps that has a similar feature as the one you want? (Provide links) Node.js's standard HTTP client and other unblocking implementations.