qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
28.47k stars 3.99k forks source link

Creating torrent cannot add files from hidden directories #21839

Open cccccccb opened 1 week ago

cccccccb commented 1 week ago

qBittorrent & operating system versions

qBittorrent: 5.0.1 Operating system: Windows 10 Qt: 6.7.3 Libtorrent: 1.2.19.0 Boost: 1.86.0 OpenSSL: 3.4.0 zlib: 1.3.1

What is the problem?

Torrent created using qbittorrent cannot add files from hidden directories, but subdirectories from hidden directories and non hidden directories can be added

Steps to reproduce

  1. image

  2. image

  3. image

  4. image

  5. image

  6. image

Additional context

src/base/bittorrent/torrentcreator.cpp image Adding the QDir:: Hidden flag in the red box can solve this problem, but I cannot guarantee whether the program really needs to add a hidden directory to the torrent file. I think we can provide users with some feedback within the program GUI, such as a configuration item

Log(s) & preferences file(s)

N/A