mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-02-09 05:14:23 +00:00
WebAPI: Allow to set read-only directory as torrent location
PR #18613. Closes #18480.
This commit is contained in:
parent
8df68ac878
commit
ff0f3b4975
@ -1101,10 +1101,6 @@ void TorrentsController::setLocationAction()
|
||||
if (!Utils::Fs::mkpath(newLocation))
|
||||
throw APIError(APIErrorType::Conflict, tr("Cannot make save path"));
|
||||
|
||||
// check permissions
|
||||
if (!Utils::Fs::isWritable(newLocation))
|
||||
throw APIError(APIErrorType::AccessDenied, tr("Cannot write to directory"));
|
||||
|
||||
applyToTorrents(hashes, [newLocation](BitTorrent::Torrent *const torrent)
|
||||
{
|
||||
LogMsg(tr("WebUI Set location: moving \"%1\", from \"%2\" to \"%3\"")
|
||||
|
Loading…
x
Reference in New Issue
Block a user