Is it possible to do "mkdir for a user" with occ?

Hi everybody,

I suppose here that I have a user named toto.
I make a directory “foo” in data/toto/files and then I put some files in it, out of any Nextcloud application, with a shell-script for exemple,
And then, in nextcloud logged with toto, I create the “foo” directory.
So, nextcloud discovers the content of “foo” and toto can access to all files in “foo”.
It’s a good recipe to transfert a lot of files without upload files one by one.

My question is :slight_smile: is there difficult to modify the occ command to create in a script the foo directory for the user toto ?

Thank a lot.

Regards.

Patrick

Sorry for this question !
I have found the solution : occ.sh files:scan ! :grin:

Regards

Patrick