mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
misc: Remove duplicate function to branch a path
This commit is contained in:
parent
0d0c7559bf
commit
60d9bfe077
3 changed files with 6 additions and 10 deletions
|
@ -888,6 +888,10 @@ bool misc::isValidTorrentFile(const QString &torrent_path) {
|
|||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a path constructed from all the elements of file_path except the last.
|
||||
* A typical use is to obtain the parent path for a path supplied by the user.
|
||||
*/
|
||||
QString misc::branchPath(QString file_path, bool uses_slashes)
|
||||
{
|
||||
if(!uses_slashes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue