While trying to import a .torrent file I get: Unable to copy file:///home/user/c/G.torrent in /home/user/.local/share/ktorrent/tor2/torrent: File or folder file:///home/user/c/G.torrent does not exist. ktorrent-5.0.1-3.fc26.x86_64
I can confirm this bug on Fedora 28. KTorrent v5.1.0. x86-64 The torrent file is valid and actually was exported from KTorrent itself. KTorrent is able to open the same torrent file as a fresh file (using Open Torrent action), just not by "Import torrent".
I can confirm this bug on OpenSuSE Tumbleweed, KTorrent version 22.04.2 When I activate logging, I see this: sáb jul 9 16:19:10 2022: Qt Debug: copy() QUrl("file:file:///home/user/Descargas/Azureus/torrents/A.torrent") to QUrl("file:///home/jesus/.local/share/ktorrent/tor0/torrent") mode= -1 Note how there's a "file:file:" on the first QUrl. That looks suspicious.
*** Bug 464351 has been marked as a duplicate of this bug. ***
A possibly relevant merge request was started @ https://invent.kde.org/network/ktorrent/-/merge_requests/83