Too many arguments to “files:transfer-ownership” command, expected arguments “source-user” “destination-user”.
I’ve just successfully done a transfer with a folder called Transfer1, i.e. without any spaces in the path. Try “Project1” and no error but of course warning that path doesn’t exist. I found a github issue around this but it was closed without resolution.
How you do transfer ownership of a folder with spaces in the path?
This post from 5 years ago has a similar problem with spaces in the username. Not my problem but related?
Found my problem and it’s not an issue with Nextcloud. Your reply pointed me towards the fault. I’ve got a bash script called nextcloudcmd that contains this:
In an attempt to stop me having to type in all that pre-amble that I can never remember So I can type nextcloudcmd occ groupfolders:list
This doesn’t work with this specific occ transfer-ownership command. I’m guessing the $* expansion in the script isn’t working quite as expected. When I run the entire command manually, it works: