Nextcloud client is complaining about w access permissions for .htaccess file


I’ve wanted to speed up the sync process and have rsynced data on my LAN from my nextcloud server to one of the clients. Now when I let the nextcloud client do it’s thing, it shows errors like:

some/path/to/.htaccess: Not allowed because you don’t have permissions to add files in that folder

even though the some/path/to/ directory has the correct 755 permissions set. But I suspect that it complains because the .htaccess has 644 permissions. Not sure, how do I let it resolve errors likre these?