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

put_file does not work. #200

Closed
avatar-lavventura opened this issue Jun 14, 2017 · 1 comment
Closed

put_file does not work. #200

avatar-lavventura opened this issue Jun 14, 2017 · 1 comment

Comments

@avatar-lavventura
Copy link

avatar-lavventura commented Jun 14, 2017

Following link: https://b2drop.eudat.eu/s/DfQlm5J42nEGnH7 holds the files and folders (publicly accessible). Please not that no user name and password is required.

I can download the zip file via:

wget https://b2drop.eudat.eu/s/DfQlm5J42nEGnH7/download

This will generate a download file. I can unzip it via: unzip download

On the website's GUI, when I click plus sign and than upload sign it opens a section where I can select which files I want to download. I would like to do all this operations via console.

enter image description here
enter image description here

I have did following code piece but it did not upload the file. Do you have any advice?

oc = owncloud.Client('https://b2drop.eudat.eu/')
oc.login('[email protected]', password ); 
oc.put_file( "https:/b2drop.eudat.eu/s/DfQlm5J42nEGnH7", "path/to/upload/run.sh")
oc.put_file( "/s/DfQlm5J42nEGnH7", "path/to/upload/run.sh")
oc.put_file( "/DfQlm5J42nEGnH7", "path/to/upload/run.sh")
@PVince81
Copy link
Contributor

With pyocclient you cannot access public links directly as they are not a subpath of "remote.php/webdav".

Closing in favor of #12

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

No branches or pull requests

2 participants