Wrap use of folder permissions restore in mac ifdefs

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-09-11 14:21:25 +08:00
parent 6f393f1c63
commit 72ff92468b
No known key found for this signature in database
GPG key ID: C839200C384636B0

View file

@ -377,9 +377,9 @@ void PropagateLocalRename::start()
qCWarning(lcPropagateLocalRename) << "exception when checking parent folder access rights" << e.what() << e.path1().c_str() << e.path2().c_str();
}
};
#endif
const auto folderPermissionsHandler = FileSystem::FilePermissionsRestore{existingFile, FileSystem::FolderPermissions::ReadWrite};
#endif
emit propagator()->touchedFile(existingFile);
emit propagator()->touchedFile(targetFile);