mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
WebAPI: return paths using platform-independent separator format
PR #18118. Closes #18096.
This commit is contained in:
parent
25ea0d274b
commit
679e3b8bea
1 changed files with 2 additions and 1 deletions
|
@ -577,7 +577,8 @@ void TorrentsController::filesAction()
|
||||||
{KEY_FILE_PRIORITY, static_cast<int>(priorities[index])},
|
{KEY_FILE_PRIORITY, static_cast<int>(priorities[index])},
|
||||||
{KEY_FILE_SIZE, torrent->fileSize(index)},
|
{KEY_FILE_SIZE, torrent->fileSize(index)},
|
||||||
{KEY_FILE_AVAILABILITY, fileAvailability[index]},
|
{KEY_FILE_AVAILABILITY, fileAvailability[index]},
|
||||||
{KEY_FILE_NAME, torrent->filePath(index).toString()}
|
// need to provide paths using a platform-independent separator format
|
||||||
|
{KEY_FILE_NAME, torrent->filePath(index).data()}
|
||||||
};
|
};
|
||||||
|
|
||||||
const BitTorrent::TorrentInfo::PieceRange idx = info.filePieces(index);
|
const BitTorrent::TorrentInfo::PieceRange idx = info.filePieces(index);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue