I have a crontab command that daily copies .iso files found within my torrents folder into an iso directory on a separate partition. My problem is that multiple .iso files will still be in the process of downloading when the crontab command executes which results in incomplete .iso files which obviously can cause issues when trying to use said .iso files.
Is there a bash command or module in python that can check whether a torrented file has been completely downloaded? Or possibly to query qbittorrent (my torrent client) to find whether the torrent has completed? Any help would be much appreciated.