rndusr / stig

TUI and CLI for the BitTorrent client Transmission
GNU General Public License v3.0
554 stars 24 forks source link

Add code to link remote and local paths. #212

Open rsekman opened 2 years ago

rsekman commented 2 years ago

As discussed in #211. See stig -h link.

At the moment only takes effect for the move command, but that may be the most frequently used. Only absolute paths are allowed in links, so relative paths should pass transparently through move, but I haven't tested this.

It would be nice to have local path/remote path fields in the various torrent views; this shouldn't be too difficult.

rndusr commented 2 years ago

That's much simpler than I thought it would be.

Looks like it should be working great.

rndusr commented 2 years ago

IIRC, run() can be either sync or async. This run() doesn't seem to use the async event loop, so it probably should be sync.

But does it matter?