Browse Source
Looking for incomplete files in a new torrent by using a pre-generated directory listing presents several disadvantages: - It requires us to extract the top-level directory name (in case it was renamed). - It requires us to know whether the top-level directory was stripped. - In the latter case, it may result in recursively traversing the entire contents of all downloaded torrents. Calling QFile::exists() individually for each file solves all these issues. In so doing, the handling of single-file and multiple-file torrents are rendered pretty much identical, and can therefore be merged.adaptive-webui-19844
Frédéric Brière
8 years ago
1 changed files with 8 additions and 35 deletions
Loading…
Reference in new issue