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 committed by Matthieu Gallien
parent d1375281a2
commit 45aa8df11a

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);