Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMD accept remote folder explicitly #10239

Merged
merged 6 commits into from
Nov 8, 2022
Merged

CMD accept remote folder explicitly #10239

merged 6 commits into from
Nov 8, 2022

Conversation

TheOneRing
Copy link
Contributor

@TheOneRing TheOneRing commented Nov 7, 2022

Usage: C:\CraftRoot\build\_\30b36579\owncloud-client\out\build\x64-Debug\bin\owncloudcmd.exe [options] source_dir server_url remote_folder
owncloudcmd version 3.1.0.0-git - command line client tool

Options:
  -s, --silten                      Don't be so verbose.
  --httpproxy <http://server:port>  Specify a http proxy to use.
  --trust                           Trust the SSL certification
  --exclude <file>                  Path to an exclude list [file]
  --unsyncedfolders <file>          File containing the list of unsynced remote
                                    folders (selective sync)
  --server <url>                    Use [url] as the location of the server.
                                    OCIS only (server location and spaces url
                                    can differ)
  -u, --user <name>                 Use [name] as the login name
  -p, --password <password>         Use [pass] as password
  -n                                Use netrc (5) for login
  --non-interactive                 Do not block execution with interaction
  --max-sync-retries <n>            Retries maximum n times (default to 3)
  --uplimit <n>                     Limit the upload speed of files to n KB/s
  --downlimit <n>                   Limit the download speed of files to n KB/s
  --logdebug                        More verbose logging
  -?, -h, --help                    Displays help on commandline options.
  --help-all                        Displays help including Qt specific
                                    options.
  -v, --version                     Displays version information.

Arguments:
  source_dir                        The source dir
  server_url                        The url to the server
  remote_folder                     A remote folder

ownCLoud 10

So instead of:
-u Alice ./tmp https://foo.bar/remote.php/webdav/Alice/Documents

The user must now provide:
-u Alice ./tmp https://foo.bar/ Documents

ocis

--server https://ocis.owncloud.test ./tmp https://ocis.owncloud.test/remote.php/dav/spaces/1284d238-aa92-42ce-bdc4-0b0000009157%244c510ada-c86b-4815-8820-42cdf82c3d51 Documents

This also removes the hidden flag concerning hidden files.

Fixes: #10147
@TheOneRing TheOneRing requested a review from a team November 7, 2022 10:49
@TheOneRing TheOneRing added this to the 3.0 milestone Nov 7, 2022
changelog/unreleased/10193 Outdated Show resolved Hide resolved
changelog/unreleased/10193 Outdated Show resolved Hide resolved
@TheOneRing TheOneRing marked this pull request as draft November 8, 2022 10:57
@TheOneRing TheOneRing requested a review from fmoc November 8, 2022 11:59
@TheOneRing TheOneRing marked this pull request as ready for review November 8, 2022 11:59
@sonarcloud
Copy link

sonarcloud bot commented Nov 8, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@HanaGemela
Copy link
Contributor

@TheOneRing provide steps to test

@TheOneRing
Copy link
Contributor Author

@TheOneRing provide steps to test

#10239 (comment)

The invocation for oc10 and ocis are mentioned.
This change was part of 3.0 and probably tested during change log testing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[owncloudcmd] 3.0 should support sync of subfolders Port cmd client to QCommandlineParser
4 participants