How to replicate directory structure from local file system to server?

Hi Folks

I’m trying to do what seems like an elementary operation, but for the life of me I’m lost. I’m attempting to put $HOME/Documents/CLIENTS to https://my.mydomain.co.uk/apps/files/?dir=/Documents/CLIENTS but the gui tends to put the directories and files at the root of the nc file hierarchy to $HOME/Documents/CLIENTS while the directories and files at $HOME/Documents/CLIENTS are put to the root of the nc hierarchy…

When I use the command line, it just fails:

$ nextcloudcmd --user read@mydomain.co.uk --password PWORD -h $HOME/Documents/CLIENTS https://my.mydomain.co.uk/apps/files/?dir=/Documents/CLIENTS
12-27 19:55:06:447 [ info nextcloud.sync.accessmanager ]:	2 "" "https://my.mydomain.co.uk/apps/files/ocs/v1.php/cloud/capabilities?format=json" has X-Request-ID "4969ef97-4da0-40d7-be22-ad2cdb49e7c7"
12-27 19:55:06:447 [ info nextcloud.sync.networkjob ]:	OCC::JsonApiJob created for "https://my.mydomain.co.uk/apps/files/" + "ocs/v1.php/cloud/capabilities" ""
12-27 19:55:18:072 [ warning nextcloud.sync.networkjob ]:	QNetworkReply::InternalServerError "Server replied \"500 Internal Server Error\" to \"GET https://my.mydomain.co.uk/apps/files/ocs/v1.php/cloud/capabilities?format=json\"" QVariant(int, 500)
12-27 19:55:18:073 [ info nextcloud.sync.networkjob.jsonapi ]:	JsonApiJob of QUrl("https://my.mydomain.co.uk/apps/files/ocs/v1.php/cloud/capabilities?format=json") FINISHED WITH STATUS "InternalServerError Server replied \"500 Internal Server Error\" to \"GET https://my.mydomain.co.uk/apps/files/ocs/v1.php/cloud/capabilities?format=json\""
12-27 19:55:18:073 [ warning nextcloud.sync.networkjob.jsonapi ]:	Network error:  "ocs/v1.php/cloud/capabilities" "Server replied \"500 Internal Server Error\" to \"GET https://my.mydomain.co.uk/apps/files/ocs/v1.php/cloud/capabilities?format=json\"" QVariant(int, 500)
12-27 19:55:18:073 [ debug default ]	[ main(int, char**)::<lambda ]:	Server capabilities QJsonObject()
Error connecting to server

This seems so elementary, I’m sure it’s under my nose - if someone could point out where under my nose, it’d be really appreciated. Thanks all.

1 Like