Should Nextcloud create $user on local external storage?

Hello!

31.0.7.1 on Ubuntu 24.04. Latest version of AIO

Hopefully a simple one, but I couldn’t find this specific issue on the forums

Everything works great, and I’ve got storage attached like so:

Users can upload and edit files, no issue

However the documentation says you can use $user, so that each user has their own folder: Configuring External Storage (GUI) — Nextcloud latest Administration Manual latest documentation

This fails:

Does Nextcloud not create the folder as it’s needed?

We can see here that it’s able to if it attempted:

root@cloud:/mnt/storage1# docker exec -it nextcloud-aio-nextcloud sh
/var/www/html # mkdir /mnt/storage1/aaron
/var/www/html # ls -l /mnt/storage1/aaron
total 0

Thank you!

I would expect a directory to be crated automatically, because if you want to mount a drive the source needs to exist in advance. The $user variable should only help you to ease the setup by covering everything with one single configuration entry instead of creating mount configuration for each user separately.

Thanks @j-ed , though I’m not sure I understand your reply

Is there a typo. Did you mean ‘wouldn’t’ instead of ‘would’?

1 Like

IIRC the path is expected to exist when using substitution variables. I don’t recall any special handling post-substitution in the path. The documentation could be clearer about this.

P.S. If so inclined, you can fork the docs on GitHub and edit that documentation page to propose a change (in a pull request). Once you’ve forked the docs once, it’ll also be easier to simply click “Edit on GitHub” in the upper right if you come across other areas of the docs (in the future) where you want to propose clarifying something too. :wink:

Thanks @jtr

Yes it looks like that’s the case

I’ll do a PR incase anyone else has the same assumption as me, and for now just do a Cron that loops NC users and makes the directories

1 Like