Use the encrypted path for collection listing

If we use the local path we'll get a 404.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
This commit is contained in:
Kevin Ottens 2020-07-08 15:35:02 +02:00 committed by Camila
parent 511a6e66dc
commit 2831b22be4

View file

@ -22,7 +22,8 @@ PropagateRemoteDeleteEncrypted::PropagateRemoteDeleteEncrypted(OwncloudPropagato
void PropagateRemoteDeleteEncrypted::start()
{
QFileInfo info(_item->_file);
Q_ASSERT(!_item->_encryptedFileName.isEmpty());
QFileInfo info(_item->_encryptedFileName);
qCDebug(PROPAGATE_REMOVE_ENCRYPTED) << "Folder is encrypted, let's get the Id from it.";
auto job = new LsColJob(_propagator->account(), info.path(), this);
job->setProperties({"resourcetype", "http://owncloud.org/ns:fileid"});